summaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-04-30 17:09:19 +0000
committerAndrew Cagney <cagney@redhat.com>2001-04-30 17:09:19 +0000
commit2dff7bd08ae59041595d35d625caeda491d20704 (patch)
tree98c379d69fcdd5ace38f4ca87b362c970866e484 /gdb/gdbtypes.c
parent631c1a598b2a41f7ba3edcd9459884e0bba3e3b8 (diff)
downloadgdb-2dff7bd08ae59041595d35d625caeda491d20704.tar.gz
Always initialize `p'.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c2
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);