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

Comparing src/util/rmtxop.c (file contents):
Revision 2.41 by greg, Fri Apr 18 23:59:03 2025 UTC vs.
Revision 2.43 by greg, Sat Aug 2 20:37:52 2025 UTC

# Line 51 | Line 51 | loadmatrix(ROPMAT *rop)
51                                  return(-1);
52                          rop->mtx = rmx_from_cmatrix(cm);
53                          cm_free(cm);
54 +                        if (!rop->mtx)
55 +                                return(-1);
56                          rop->mtx->dtype = DTascii;
57                          return(1);      /* loaded BSDF XML file */
58                  }
# Line 179 | Line 181 | checksymbolic(ROPMAT *rop)
181          double          cf = 1;
182          int             i, j;
183                                          /* check suffix => reference file */
184 <        if (strchr(rop->preop.csym, '.') > rop->preop.csym)
184 >        if (strchr(rop->preop.csym, '.') != NULL)
185                  return(checkreffile(rop));
186  
187          if (nc < 3) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines