diff options
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/parse.c b/gdb/parse.c index af01947..09fb0b3 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -1290,8 +1290,13 @@ parse_expression_for_completion (const char *string, char **name, parse_completion = 1; exp = parse_exp_in_context (&string, 0, 0, 0, 0, &subexp); } + if (except.reason < 0) + { + /* Nothing, EXP remains NULL. */ + } + parse_completion = 0; - if (except.reason < 0 || ! exp) + if (exp == NULL) return NULL; if (expout_tag_completion_type != TYPE_CODE_UNDEF) |