lib

morphux C utility library
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/lib

commit 7b5bf5d9b91b7b3b3082d68ddd4b6d80b6da8242
parent 937f638ad514ecc65b88226266b9396e8003d0d6
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 22 May 2017 13:16:20 +0200

Fix(Utils): Forgotten status return

Diffstat:
Msrc/m_util.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/m_util.c b/src/m_util.c @@ -96,6 +96,7 @@ int exec_line(const char *str) { mlist_t *list = NULL; char *cmd; size_t j, i, len; + int ret; if (str == NULL) return 0; @@ -121,10 +122,10 @@ int exec_line(const char *str) { } list_add(list, cmd + j, i - j + 1); - exec_list(list); + ret = exec_list(list); list_free(list, NULL); free(cmd); - return 0; + return ret; } int exec_list(mlist_t *list) {