Commit c801c87c by Joerg Brunsmann Committed by Tom Tromey

jcf-dump.c (main): Test for correct condition after output file creation.

Mon Jan 18 14:30:09 2000  Joerg Brunsmann  <joerg.brunsmann@fernuni-hagen.de>

	* jcf-dump.c (main): Test for correct condition after
	output file creation.

From-SVN: r32089
parent 3759b292
Mon Jan 18 14:30:09 2000 Joerg Brunsmann <joerg.brunsmann@fernuni-hagen.de>
* jcf-dump.c (main): Test for correct condition after
output file creation.
2000-02-19 Anthony Green <green@cygnus.com>
* jcf-depend.c (add_entry): Fix test for first list entry.
......
......@@ -880,7 +880,7 @@ DEFUN(main, (argc, argv),
if (output_file)
{
out = fopen (output_file, "w");
if (out)
if (! out)
{
fprintf (stderr, "Cannot open '%s' for output.\n", output_file);
return FATAL_EXIT_CODE;
......
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