aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-02-27 16:53:22 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2022-02-27 16:53:22 +0100
commit7de88d1bcd420447023b8e74b0aa4f5e8ba1df6b (patch)
tree71458dbc99241c9d56744508996d68099bf01936 /src/shell.c
parent48cd8b6b1779f34ba0507cb697492de83c4e9da8 (diff)
downloadnissy-7de88d1bcd420447023b8e74b0aa4f5e8ba1df6b.tar.gz
nissy-7de88d1bcd420447023b8e74b0aa4f5e8ba1df6b.zip
Removed array-size constants for certain objects (steps, commands...)
Diffstat (limited to '')
-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