summaryrefslogtreecommitdiffabout
path: root/src/eclat.c
Side-by-side diff
Diffstat (limited to 'src/eclat.c') (more/less context) (show 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
@@ -494,7 +494,7 @@ print_matching_commands(const char *pat)
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);
}
}

Return to:

Send suggestions and report system problems to the System administrator.