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

Comparing ray/src/common/readobj.c (file contents):
Revision 2.26 by greg, Sat Dec 7 02:05:30 2024 UTC vs.
Revision 2.27 by greg, Tue Apr 22 04:45:25 2025 UTC

# Line 64 | Line 64 | readobj(                               /* read in an object file or stream */
64                          getobject(inpspec, infp);
65                  }
66          }
67 <        if (inpspec[0] == '!')
68 <                pclose(infp);
69 <        else if (infp != stdin)
67 >        if (inpspec[0] == '!') {
68 >                if (pclose(infp) != 0) {
69 >                        sprintf(errmsg, "bad status from \"%s\"", inpspec);
70 >                        error(USER, errmsg);
71 >                }
72 >        } else if (infp != stdin)
73                  fclose(infp);
74   #ifdef getc_unlocked
75          else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines