From 502dcf4e393a5113e25a9c579df326b2435ef566 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 30 Apr 2001 17:09:19 +0000 Subject: [PATCH] Always initialize `p'. --- gdb/ChangeLog | 4 ++++ gdb/gdbtypes.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d2713927030..43ac242ce66 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2001-04-27 Andrew Cagney + + * gdbtypes.c (check_stub_method): Always initialize ``p''. + 2001-04-27 Andrew Cagney * configure.host: Delete romp host. 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); -- 2.30.2