diff options
author | Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com> | 2014-08-29 12:48:03 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-09-08 00:40:51 +0200 |
commit | d17f228ea898c84601e98c5ba04a0ac71d838d56 (patch) | |
tree | f291fdcf1a40a666a72ce4d632774c182e3b49ef /ncl/ncl.c | |
parent | 9c2fe1ce052ba50c0629248ec7762c00145a29ee (diff) | |
download | neardal-d17f228ea898c84601e98c5ba04a0ac71d838d56.tar.gz neardal-d17f228ea898c84601e98c5ba04a0ac71d838d56.tar.bz2 neardal-d17f228ea898c84601e98c5ba04a0ac71d838d56.zip |
Don't terminate on empty string.
Diffstat (limited to 'ncl/ncl.c')
-rw-r--r-- | ncl/ncl.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -185,7 +185,9 @@ NCLError ncl_exec(char *cmd) NCL_CMD_PRINTERR("'%s': %s\n", cmd, ncl_error_get_text(ret)); exit: if (gerr) { - if (gerr->code != G_SHELL_ERROR_EMPTY_STRING) + if (gerr->code == G_SHELL_ERROR_EMPTY_STRING) + ret = NCLERR_NOERROR; + if (ret != NCLERR_NOERROR) NCL_CMD_PRINTERR("%s\n", gerr->message); g_error_free(gerr); } |