summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>2014-08-29 12:48:03 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2014-09-08 00:40:51 +0200
commitd17f228ea898c84601e98c5ba04a0ac71d838d56 (patch)
treef291fdcf1a40a666a72ce4d632774c182e3b49ef
parent9c2fe1ce052ba50c0629248ec7762c00145a29ee (diff)
downloadneardal-d17f228ea898c84601e98c5ba04a0ac71d838d56.tar.gz
neardal-d17f228ea898c84601e98c5ba04a0ac71d838d56.tar.bz2
neardal-d17f228ea898c84601e98c5ba04a0ac71d838d56.zip
Don't terminate on empty string.
-rw-r--r--ncl/ncl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ncl/ncl.c b/ncl/ncl.c
index fc5604c..53a0de3 100644
--- a/ncl/ncl.c
+++ b/ncl/ncl.c
@@ -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);
}