summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>2014-08-29 12:48:00 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2014-09-08 00:40:51 +0200
commita5cf73b1b1967d105127ce2232ef3cdcc358185a (patch)
tree0217de339affcc62c67761a6d5e8968d6e53f22b
parent59cec50b2d9d3c5617fedcdd1a1a3b2ef72bcb27 (diff)
downloadneardal-a5cf73b1b1967d105127ce2232ef3cdcc358185a.tar.gz
neardal-a5cf73b1b1967d105127ce2232ef3cdcc358185a.tar.bz2
neardal-a5cf73b1b1967d105127ce2232ef3cdcc358185a.zip
Minor fix.
-rw-r--r--ncl/ncl.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ncl/ncl.c b/ncl/ncl.c
index 4e99f07..53ad3d9 100644
--- a/ncl/ncl.c
+++ b/ncl/ncl.c
@@ -270,11 +270,8 @@ static void ncl_prv_parse_script_file(char *scriptFileStr)
NCL_CMD_PRINT("$$$$$$$$$$$$$$$$$$$$$$$$$'\n");
gNclCtx.errOnExit = ncl_exec(cmdLineStr);
- /* Main loop */
- do {
- g_main_context_iteration(NULL, false);
- } while (g_main_context_pending(NULL));
- }
+ while (g_main_context_pending(NULL))
+ g_main_context_iteration(NULL, FALSE);
}
/* Freeing command line */
if (cmdLineStr != NULL) {