diff options
Diffstat (limited to 'gdb/completer.c')
-rw-r--r-- | gdb/completer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/completer.c b/gdb/completer.c index 53275c0e73a..e678fb1b20c 100644 --- a/gdb/completer.c +++ b/gdb/completer.c @@ -401,7 +401,7 @@ add_struct_fields (struct type *type, int *nextp, char **output, computed_type_name = 1; } /* Omit constructors from the completion list. */ - if (type_name && strcmp (type_name, name)) + if (!type_name || strcmp (type_name, name)) { output[*nextp] = xstrdup (name); ++*nextp; |