summaryrefslogtreecommitdiffabout
path: root/src/eclat.c
authorSergey Poznyakoff <gray@gnu.org.ua>2013-04-25 15:38:06 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2013-04-25 15:38:06 (GMT)
commitc00e8ff6d9cef344ce439a2553c5627f519face7 (patch) (side-by-side diff)
treedaa5391fe1170a0c2bdf7eb12be74491d3ca8e2e /src/eclat.c
parente545233cb313c7a217c0839390a996744f92edf5 (diff)
downloadeclat-c00e8ff6d9cef344ce439a2553c5627f519face7.tar.gz
eclat-c00e8ff6d9cef344ce439a2553c5627f519face7.tar.bz2
Bugfix.
* src/eclat.c (print_matching_commands): Fix coredump.
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
@@ -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.