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

Comparing ray/src/common/readoct.c (file contents):
Revision 2.33 by greg, Thu Jun 8 17:39:13 2023 UTC vs.
Revision 2.35 by greg, Tue Apr 22 14:51:29 2025 UTC

# Line 127 | Line 127 | readoct(                               /* read in octree file or stream */
127              }
128          }
129                                  /* close the input */
130 <        if (infn[0] == '!')
131 <                pclose(infp);
132 <        else if (infp != stdin)
130 >        if (inpspec[0] == '!') {
131 >                if (pclose(infp) != 0) {
132 >                        sprintf(errmsg, "bad status from \"%s\"", inpspec);
133 >                        error(WARNING, errmsg);
134 >                }
135 >        } else if (infp != stdin)
136                  fclose(infp);
137   #ifdef getc_unlocked
138          else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines