From: Neil Booth Date: Mon, 29 Jul 2002 22:46:34 +0000 (+0000) Subject: objc-act.c (objc_init): Return immediately if filename is NULL. X-Git-Tag: releases/gcc-3.3.0~3571 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4307be72fc812b00f96291c655e1fad29ef8352f;p=thirdparty%2Fgcc.git objc-act.c (objc_init): Return immediately if filename is NULL. * objc/objc-act.c (objc_init): Return immediately if filename is NULL. From-SVN: r55853 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dee88424ae13..58f1ff30d023 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-07-30 Neil Booth + + * objc/objc-act.c (objc_init): Return immediately if filename + is NULL. + 2002-07-29 Eric Christopher * config/mips/elf.h: Remove ecoff.h and gofast includes. diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index f0a7170f1318..42944a8341d7 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -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