summaryrefslogtreecommitdiffabout
path: root/src/eclat.c
Side-by-side diff
Diffstat (limited to 'src/eclat.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/eclat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eclat.c b/src/eclat.c
index 5df504e..ee44053 100644
--- a/src/eclat.c
+++ b/src/eclat.c
@@ -491,13 +491,13 @@ print_matching_commands(const char *pat)
size_t patlen = strlen (pat);
for (cp = cmdtab; cp < cmdtab + cmdcnt; cp++) {
if (cp->name && strlen (cp->name) >= patlen &&
memcmp (cp->name, pat, patlen) == 0)
printf("%s\n", cp->name);
- if (ident_matches(cp->ident, pat) != NO_MATCH)
+ if (cp->ident && ident_matches(cp->ident, pat) != NO_MATCH)
printf("%s\n", cp->ident);
}
}
struct eclat_command *
find_command_tag(const char *tag)

Return to:

Send suggestions and report system problems to the System administrator.