summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/actions.c b/src/actions.c
index 9ee7bd7..9c097db 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -2322,7 +2322,10 @@ command (int interactive, char *data)
cmd = strtok (input, " ");
if (cmd == NULL)
- goto done;
+ {
+ result = cmdret_new (RET_FAILURE, NULL);
+ goto done;
+ }
rest = strtok (NULL, "\0");