ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/ra_rgbe.c
(Generate patch)

Comparing ray/src/px/ra_rgbe.c (file contents):
Revision 2.23 by greg, Tue Sep 10 20:24:42 2024 UTC vs.
Revision 2.26 by greg, Sat Jun 7 05:09:46 2025 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9  
10   #include  "platform.h"
11   #include  "rtio.h"
12 #include  "paths.h"
12   #include  "color.h"
13   #include  "resolu.h"
14  
# Line 191 | Line 190 | transfer(                      /* transfer a Radiance picture */
190          free(scanin);                   /* clean up */
191          if (fflush(fp) == EOF)
192                  goto writerr;
193 <        if (oname[0] == '!')
194 <                pclose(fp);
195 <        else if (ospec != NULL)
193 >        if (oname[0] == '!') {
194 >                if (pclose(fp) != 0)
195 >                        fprintf(stderr, "%s: warning - bad status from \"%s\"\n",
196 >                                        progname, oname);
197 >        } else if (ospec != NULL)
198                  fclose(fp);
199          return(1);
200   writerr:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines