# | 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: |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |