From de237128e528d133326b565cfe5b8c98c1dcd511 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 7 May 2008 12:43:54 +0000 Subject: [PATCH] * cp-support.c (mangled_name_to_comp): Initialize storage. (unqualified_name_from_comp): Likewise. --- gdb/ChangeLog | 5 +++++ gdb/cp-support.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4aac2ee7bc7..0819a3c87d0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-05-07 Daniel Jacobowitz + + * cp-support.c (mangled_name_to_comp): Initialize storage. + (unqualified_name_from_comp): Likewise. + 2008-05-07 Jie Zhang * remote.c (remote_insert_breakpoint): Call get_remote_state diff --git a/gdb/cp-support.c b/gdb/cp-support.c index 696888e04e8..3fefb3ccc09 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -180,7 +180,7 @@ mangled_name_to_comp (const char *mangled_name, int options, char * cp_class_name_from_physname (const char *physname) { - void *storage; + void *storage = NULL; char *demangled_name = NULL, *ret; struct demangle_component *ret_comp, *prev_comp, *cur_comp; int done; @@ -324,7 +324,7 @@ unqualified_name_from_comp (struct demangle_component *comp) char * method_name_from_physname (const char *physname) { - void *storage; + void *storage = NULL; char *demangled_name = NULL, *ret; struct demangle_component *ret_comp; int done; -- 2.30.2