]> git.draconx.ca Git - cdecl99.git/blobdiff - src/execute.gperf
Fix empty and help commands causing program exit.
[cdecl99.git] / src / execute.gperf
index e8a066547b73ff7e3cd85927ffeb04f50d8c7ae1..c667408c57c85282298ec9e6c55c0638e6b609c3 100644 (file)
@@ -79,7 +79,7 @@ static int run_cmd_help(void)
                print_block(gettext(strtab+c->cmd), 15, w);
        }
 
-       return 1;
+       return 0;
 }
 
 int run_command(const char *line, int interactive)
@@ -90,7 +90,7 @@ int run_command(const char *line, int interactive)
 
        /* empty command */
        if (cmd[0] == '\0')
-               return 1;
+               return 0;
 
        c = in_word_set(cmd, arg-cmd);
        if (!c) {