diff options
-rw-r--r-- | loop.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -12,7 +12,9 @@ void loop() { /* If the line is valid, try to run it as a command */ if (line != NULL) { - cmd(line); + if (strlen(line) > 0) { + cmd(line); + } } /* If the line is EOF (^D), break out of the loop */ |