From: Daniel Jacobowitz Date: Wed, 7 May 2008 12:43:54 +0000 (+0000) Subject: * cp-support.c (mangled_name_to_comp): Initialize storage. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de237128e528d133326b565cfe5b8c98c1dcd511;p=binutils-gdb.git * cp-support.c (mangled_name_to_comp): Initialize storage. (unqualified_name_from_comp): Likewise. --- 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;