summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--src/eclat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/eclat.c b/src/eclat.c
index 5326c9e..12b4dd1 100644
--- a/src/eclat.c
+++ b/src/eclat.c
@@ -400,10 +400,13 @@ find_command_name(const char *name)
err("ambiguous command %s:", name);
err(" %s", match->ident);
err(" %s", cp->ident);
- while (++cp < cmdtab + cmdcnt)
+ while (++cp < cmdtab + cmdcnt) {
+ if (!cp->ident)
+ continue;
if (ident_matches(cp->ident, name) !=
NO_MATCH)
err(" %s", cp->ident);
+ }
exit(EX_USAGE);
}
}

Return to:

Send suggestions and report system problems to the System administrator.