aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-support.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-05-07 12:43:54 +0000
committerDaniel Jacobowitz <drow@false.org>2008-05-07 12:43:54 +0000
commitde237128e528d133326b565cfe5b8c98c1dcd511 (patch)
tree44b4c689cfb98443857ae9b8cdfdb4671739121e /gdb/cp-support.c
parent4fff24118ad4d559d429d5975cfb80ec3d8c1bf1 (diff)
downloadgdb-de237128e528d133326b565cfe5b8c98c1dcd511.zip
gdb-de237128e528d133326b565cfe5b8c98c1dcd511.tar.gz
gdb-de237128e528d133326b565cfe5b8c98c1dcd511.tar.bz2
* cp-support.c (mangled_name_to_comp): Initialize storage.
(unqualified_name_from_comp): Likewise.
Diffstat (limited to 'gdb/cp-support.c')
-rw-r--r--gdb/cp-support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cp-support.c b/gdb/cp-support.c
index 696888e..3fefb3c 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;