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.24 by greg, Tue Apr 22 04:45:25 2025 UTC

# Line 191 | Line 191 | transfer(                      /* transfer a Radiance picture */
191          free(scanin);                   /* clean up */
192          if (fflush(fp) == EOF)
193                  goto writerr;
194 <        if (oname[0] == '!')
195 <                pclose(fp);
196 <        else if (ospec != NULL)
194 >        if (oname[0] == '!') {
195 >                if (pclose(fp) != 0) {
196 >                        fprintf(stderr, "%s: bad status from \"%s\"\n",
197 >                                        progname, oname);
198 >                        exit(1);
199 >                }
200 >        } else if (ospec != NULL)
201                  fclose(fp);
202          return(1);
203   writerr:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines