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
This commit is contained in:
Neil Booth 2002-07-29 22:46:34 +00:00 committed by Neil Booth
parent 6d4392353e
commit 4307be72fc
2 changed files with 7 additions and 0 deletions

View 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.

View 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