This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
[PATCH] jcf-dump
- To: java-patches at sourceware dot cygnus dot com
- Subject: [PATCH] jcf-dump
- From: Joerg Brunsmann <joerg dot brunsmann at FernUni-Hagen dot de>
- Date: Mon, 21 Feb 2000 10:25:03 +0100
- Organization: Fernuniversitaet Hagen - Software Engineering (Praktische Informatik III)
Hi,
this patch fixes an obious bug in jcf-dump.c
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.
Index: egcs/gcc/java/jcf-dump.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jcf-dump.c,v
retrieving revision 1.28
diff -c -3 -p -r1.28 jcf-dump.c
*** jcf-dump.c 2000/02/18 12:26:50 1.28
--- jcf-dump.c 2000/02/21 09:14:30
*************** DEFUN(main, (argc, argv),
*** 880,886 ****
if (output_file)
{
out = fopen (output_file, "w");
! if (out)
{
fprintf (stderr, "Cannot open '%s' for output.\n", output_file);
return FATAL_EXIT_CODE;
--- 880,886 ----
if (output_file)
{
out = fopen (output_file, "w");
! if (! out)
{
fprintf (stderr, "Cannot open '%s' for output.\n", output_file);
return FATAL_EXIT_CODE;