]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
objc-act.c (objc_init): Return immediately if filename is NULL.
authorNeil Booth <neil@daikokuya.co.uk>
Mon, 29 Jul 2002 22:46:34 +0000 (22:46 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Mon, 29 Jul 2002 22:46:34 +0000 (22:46 +0000)
* objc/objc-act.c (objc_init): Return immediately if filename
is NULL.

From-SVN: r55853

gcc/ChangeLog
gcc/objc/objc-act.c

index dee88424ae13c873ac5e87bd58accb3a0fcda98c..58f1ff30d0232223feddeb5d8302bad6d3e68779 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
+
+       * objc/objc-act.c (objc_init): Return immediately if filename
+       is NULL.
+
 2002-07-29  Eric Christopher  <echristo@redhat.com>
 
                * config/mips/elf.h: Remove ecoff.h and gofast includes.
index f0a7170f1318b06ae9181697cfde6ac40cc60124..42944a8341d7ae1afc2b16776667907d9abbaf7b 100644 (file)
@@ -464,6 +464,8 @@ objc_init (filename)
      const char *filename;
 {
   filename = c_objc_common_init (filename);
+  if (filename == NULL)
+    return filename;
 
   /* Force the line number back to 0; check_newline will have
      raised it to 1, which will make the builtin functions appear