summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>2014-08-29 12:47:56 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2014-09-08 00:40:51 +0200
commitc919296a3085668d5d6134211d82677a57690815 (patch)
treea0df2da8e63a85437ab4b42dde60f20766744498
parentefbc0e9af7a442975412813277d4b8ba7d988c60 (diff)
downloadneardal-c919296a3085668d5d6134211d82677a57690815.tar.gz
neardal-c919296a3085668d5d6134211d82677a57690815.tar.bz2
neardal-c919296a3085668d5d6134211d82677a57690815.zip
Ignore empty strings.
-rw-r--r--ncl/ncl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ncl/ncl.c b/ncl/ncl.c
index 2bfbfe0..8c0a4cf 100644
--- a/ncl/ncl.c
+++ b/ncl/ncl.c
@@ -189,7 +189,8 @@ NCLError ncl_exec(char *cmdName)
}
exit:
if (gerror) {
- NCL_CMD_PRINTERR("%s\n", gerror->message);
+ if (gerror->code != G_SHELL_ERROR_EMPTY_STRING)
+ NCL_CMD_PRINTERR("%s\n", gerror->message);
g_error_free(gerror);
}
g_strfreev(argv);