Browse Source

remove spurious error message

pre-master-46
Holger Vogt 6 years ago
parent
commit
58901fe898
  1. 5
      src/frontend/inp.c

5
src/frontend/inp.c

@ -528,11 +528,12 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
}
tfree(dir_name);
/* if nothing came back from inp_readall, just close fp and return to caller */
/* if nothing came back from inp_readall, e.g. after calling ngspice without parameters,
just close fp and return to caller */
if (!deck) {
if (!intfile && fp)
fclose(fp);
return 1;
return 0;
}
/* files starting with *ng_script are user supplied command files */

Loading…
Cancel
Save