This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] jcf-dump


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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]