summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/input.c b/input.c
index 64102e2..c342a78 100644
--- a/input.c
+++ b/input.c
@@ -109,6 +109,7 @@ void input(char *input) {
 		return;
 	}
 	char *command = strsep(&input, " ");
+	if (input && !input[0]) input = NULL;
 	for (size_t i = 0; i < COMMANDS_LEN; ++i) {
 		if (strcasecmp(command, COMMANDS[i].command)) continue;
 		COMMANDS[i].handler(input);