| # | Line 219 | Line 219 | cm_load(const char *inspec, int nrows, int ncols, int | |
|---|---|---|
| 219 | COLOR scale; | |
| 220 | CMATRIX *cm; | |
| 221 | ||
| 222 | < | if (!inspec || !*inspec) |
| 222 | > | if (!inspec) |
| 223 | > | inspec = stdin_name; |
| 224 | > | else if (!*inspec) |
| 225 | return(NULL); | |
| 226 | < | if (inspec == stdin_name) |
| 226 | > | if (inspec == stdin_name) { /* reading from stdin? */ |
| 227 | fp = stdin; | |
| 228 | < | else if (inspec[0] == '!') { |
| 228 | > | } else if (inspec[0] == '!') { |
| 229 | fp = popen(inspec+1, "r"); | |
| 230 | if (!fp) { | |
| 231 | sprintf(errmsg, "cannot start command '%s'", inspec); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |