OSDN Git Service

2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 May 2004 19:01:04 +0000 (19:01 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 May 2004 19:01:04 +0000 (19:01 +0000)
        * archive.c (objc_read_class): Initialize class_name.
        (objc_read_selector): Initialize selector_name.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81798 138bc75d-0d04-0410-961f-82ee72b054a4

libobjc/ChangeLog
libobjc/archive.c

index 03a02a6..8985533 100644 (file)
@@ -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.
index aca648e..f424504 100644 (file)
@@ -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);