jcf-parse.c (java_parse_file): Handle the case that input_filename is NULL.

* jcf-parse.c (java_parse_file): Handle the case that input_filename
	is NULL.

From-SVN: r78649
This commit is contained in:
Roger Sayle 2004-02-29 14:09:58 +00:00 committed by Roger Sayle
parent bc41842bb2
commit 083474cc69
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2004-02-29 Roger Sayle <roger@eyesopen.com>
* jcf-parse.c (java_parse_file): Handle the case that input_filename
is NULL.
2004-02-27 Per Bothner <per@bothner.com>
* parse.y (build_assertion): Re-do 02-25 change following Jeff Sturm

View File

@ -910,9 +910,9 @@ java_parse_file (int set_yydebug ATTRIBUTE_UNUSED)
finput = NULL;
}
else
list = xstrdup (input_filename);
list = input_filename ? xstrdup (input_filename) : 0;
do
while (list)
{
for (next = list; ; )
{
@ -991,7 +991,6 @@ java_parse_file (int set_yydebug ATTRIBUTE_UNUSED)
}
list = next;
}
while (next);
if (filename_count == 0)
warning ("no input file specified");