diff options
Diffstat (limited to 'src/gdbmtool.c')
-rw-r--r-- | src/gdbmtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gdbmtool.c b/src/gdbmtool.c index 454465e..8c97e1e 100644 --- a/src/gdbmtool.c +++ b/src/gdbmtool.c @@ -1435,7 +1435,7 @@ command_generator (const char *text, int state) len = strlen (text); } - if (!cmd->name) + if (!cmd || !cmd->name) return NULL; /* Return the next name which partially matches from the command list. */ |