summaryrefslogtreecommitdiffstats
path: root/gdb
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
commit502dcf4e393a5113e25a9c579df326b2435ef566 (patch)
treee598c595fe2ae050d6ed8cb9f2934836e894a845 /gdb
parent5fba655aed6c897750c2a9c88467b1691b8ec481 (diff)
downloadppe42-binutils-502dcf4e393a5113e25a9c579df326b2435ef566.tar.gz
ppe42-binutils-502dcf4e393a5113e25a9c579df326b2435ef566.zip
Always initialize `p'.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/gdbtypes.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d271392703..43ac242ce6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2001-04-27 Andrew Cagney <ac131313@redhat.com>
+ * gdbtypes.c (check_stub_method): Always initialize ``p''.
+
+2001-04-27 Andrew Cagney <ac131313@redhat.com>
+
* configure.host: Delete romp host.
* TODO: Update.
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index f3cff63501..ee191cdd0b 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);
OpenPOWER on IntegriCloud