aboutsummaryrefslogtreecommitdiff
path: root/libobjc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-05-13 19:01:04 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-05-13 12:01:04 -0700
commit755bddc8a6e5b3397bd83b3bd3252296d02b02e5 (patch)
treed6f9f7a9c4a6d276453f6be4e4018af4f5c671c0 /libobjc
parent7549d7f202636b2fca00a790289cc336eab7a9a4 (diff)
downloadgcc-755bddc8a6e5b3397bd83b3bd3252296d02b02e5.zip
gcc-755bddc8a6e5b3397bd83b3bd3252296d02b02e5.tar.gz
gcc-755bddc8a6e5b3397bd83b3bd3252296d02b02e5.tar.bz2
archive.c (objc_read_class): Initialize class_name.
2004-05-13 Andrew Pinski <pinskia@physics.uc.edu> * archive.c (objc_read_class): Initialize class_name. (objc_read_selector): Initialize selector_name. From-SVN: r81798
Diffstat (limited to 'libobjc')
-rw-r--r--libobjc/ChangeLog5
-rw-r--r--libobjc/archive.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog
index 03a02a6..8985533 100644
--- a/libobjc/ChangeLog
+++ b/libobjc/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * archive.c (objc_read_class): Initialize class_name.
+ (objc_read_selector): Initialize selector_name.
+
2004-05-09 Richard Sandiford <rsandifo@redhat.com>
* Makefile.in (toolexecdir): Remove trailing space.
diff --git a/libobjc/archive.c b/libobjc/archive.c
index aca648e..f424504 100644
--- a/libobjc/archive.c
+++ b/libobjc/archive.c
@@ -887,7 +887,7 @@ objc_read_class (struct objc_typed_stream *stream, Class *class)
if (buf[0] == (_B_EXT | _BX_CLASS))
{
- char *class_name;
+ char *class_name = "";
unsigned long version;
/* get class */
@@ -938,7 +938,7 @@ objc_read_selector (struct objc_typed_stream *stream, SEL* selector)
if (buf[0] == (_B_EXT|_BX_SEL)) /* selector! */
{
- char *selector_name;
+ char *selector_name = "";
/* get selector */
len = objc_read_string (stream, &selector_name);