aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/cp-support.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4aac2ee..0819a3c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * cp-support.c (mangled_name_to_comp): Initialize storage.
+ (unqualified_name_from_comp): Likewise.
+
2008-05-07 Jie Zhang <jie.zhang@analog.com>
* remote.c (remote_insert_breakpoint): Call get_remote_state
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;