[PATCH] jcf-dump

Joerg Brunsmann joerg.brunsmann@FernUni-Hagen.de
Mon Feb 21 01:26:00 GMT 2000


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;


More information about the Java-patches mailing list