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

Comparing ray/src/cv/bsdf2rad.c (file contents):
Revision 2.39 by greg, Tue Dec 7 23:55:02 2021 UTC vs.
Revision 2.40 by greg, Tue Apr 22 04:45:25 2025 UTC

# Line 638 | Line 638 | convert_mgf(const char *mgfdata)
638          if ((fp = popen(cmdbuf, "r")) == NULL ||
639                          fscanf(fp, "%f %f %f %f %f %f",
640                                  &xmin, &xmax, &ymin, &ymax, &zmin, &zmax) != 6
641 <                        || pclose(fp) < 0) {
641 >                        || pclose(fp) != 0) {
642                  fprintf(stderr, "%s: error reading from command: %s\n",
643                                  progname, cmdbuf);
644                  return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines