| # | Line 276 | Line 276 | loadOBJ(Scene *sc, const char *fspec) | |
|---|---|---|
| 276 | fprintf(stderr, " %8d statements\r", nstats); | |
| 277 | } | |
| 278 | #if POPEN_SUPPORT | |
| 279 | < | if (fspec[0] == '!' && pclose(fp) != 0) { |
| 280 | < | sprintf(errmsg, "Bad return status from: %s", fspec+1); |
| 281 | < | error(USER, errmsg); |
| 282 | < | freeScene(sc); |
| 283 | < | return(NULL); |
| 279 | > | if (fspec[0] == '!') { |
| 280 | > | if (pclose(fp) != 0) { |
| 281 | > | sprintf(errmsg, "Bad return status from: %s", fspec+1); |
| 282 | > | error(USER, errmsg); |
| 283 | > | freeScene(sc); |
| 284 | > | return(NULL); |
| 285 | > | } |
| 286 | } else | |
| 287 | #endif | |
| 288 | if (fp != stdin) | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |