remove spurious error message

This commit is contained in:
Holger Vogt 2020-01-18 17:29:37 +01:00
parent 07e680bcfd
commit b06cf20df8
1 changed files with 3 additions and 2 deletions

View File

@ -528,11 +528,12 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
} }
tfree(dir_name); 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 (!deck) {
if (!intfile && fp) if (!intfile && fp)
fclose(fp); fclose(fp);
return 1; return 0;
} }
/* files starting with *ng_script are user supplied command files */ /* files starting with *ng_script are user supplied command files */