Commit 083474cc by Roger Sayle Committed by Roger Sayle

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
parent bc41842b
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
......
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment