From b06cf20df8b7a5e8279fdc19483f76bbdfd9ee90 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 18 Jan 2020 17:29:37 +0100 Subject: [PATCH] remove spurious error message --- src/frontend/inp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index e4f148da9..ee0ae6cbf 100644 --- a/src/frontend/inp.c +++ b/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 */