# | 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) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |