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

Comparing ray/src/rt/renderopts.c (file contents):
Revision 2.25 by greg, Fri Apr 5 17:52:20 2024 UTC vs.
Revision 2.26 by greg, Fri Apr 5 17:55:25 2024 UTC

# Line 75 | Line 75 | match_subfeatures(     /* check if subfeatures are support
75                  while (*reqs && (*cp = *reqs++) != ',')
76                          cp++;
77                  *cp = '\0';
78 <                n = cp - subfeat;
78 >                if (!(n = cp - subfeat))
79 >                        continue;       /* empty subfeature */
80                  for (cp = mysublist; (cp = strstr(cp, subfeat)) != NULL; cp++)
81                          if ((cp[-1] == ',') | (cp[-1] == '=') &&
82                                          (cp[n] == ',') | (cp[n] == '\n'))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines