diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-04-30 17:09:19 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-04-30 17:09:19 +0000 |
commit | 2dff7bd08ae59041595d35d625caeda491d20704 (patch) | |
tree | 98c379d69fcdd5ace38f4ca87b362c970866e484 /gdb/gdbtypes.c | |
parent | 631c1a598b2a41f7ba3edcd9459884e0bba3e3b8 (diff) | |
download | gdb-2dff7bd08ae59041595d35d625caeda491d20704.tar.gz |
Always initialize `p'.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r-- | gdb/gdbtypes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index f3cff63501f..ee191cdd0bb 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -1410,6 +1410,8 @@ check_stub_method (struct type *type, int method_id, int signature_id) /* Make sure we got back a function string that we can use. */ if (demangled_name) p = strchr (demangled_name, '('); + else + p = NULL; if (demangled_name == NULL || p == NULL) error ("Internal: Cannot demangle mangled name `%s'.", mangled_name); |