aboutsummaryrefslogtreecommitdiff
path: root/repl.c
diff options
context:
space:
mode:
Diffstat (limited to 'repl.c')
-rw-r--r--repl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/repl.c b/repl.c
index 1788fdf..1fcca4a 100644
--- a/repl.c
+++ b/repl.c
@@ -38,7 +38,7 @@ int main(int argc, char *argv[]) {
break;
}
- add_history(input);
+ if (input[0] != '\0') add_history(input);
int size = strlen(argv[1]) + 1 + strlen(input) + 1;
char *command = malloc(size);