aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell.c b/src/shell.c
index 2cb3719..6e67e0a 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -37,8 +37,8 @@ exec_args(int c, char **v)
37 CommandArgs *args; 37 CommandArgs *args;
38 Alg *scramble; 38 Alg *scramble;
39 39
40 for (i = 0; i < NCOMMANDS; i++) 40 for (i = 0; commands[i] != NULL; i++)
41 if (commands[i] != NULL && !strcmp(v[0], commands[i]->name)) 41 if (!strcmp(v[0], commands[i]->name))
42 cmd = commands[i]; 42 cmd = commands[i];
43 43
44 if (cmd == NULL) { 44 if (cmd == NULL) {

Generated with cgit - Back to sebastiano.tronto.net