diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-13 19:01:04 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-13 19:01:04 +0000 |
commit | 051078cbef8a2b935749f85872b6a38baa836577 (patch) | |
tree | d6f9f7a9c4a6d276453f6be4e4018af4f5c671c0 /libobjc/archive.c | |
parent | 123f707f6127c7f0064033815908be108d803af1 (diff) | |
download | gcc-051078cbef8a2b935749f85872b6a38baa836577.tar.gz |
2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
* 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
Diffstat (limited to 'libobjc/archive.c')
-rw-r--r-- | libobjc/archive.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libobjc/archive.c b/libobjc/archive.c index aca648ec669..f4245041fc5 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); |