From 48ee93760cf443bf0a56ee37edb81f2547d50b41 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Tue, 12 Jul 2016 00:21:37 +0200 Subject: [PATCH] inp.c, correction for shared ngspice --- 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 807f98447..b5613ff4d 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -376,8 +376,9 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile) char *dir_name = ngdirname(filename ? filename : "."); startTime = seconds(); - /* inp_source() called with fp: load from file */ - if (fp) { + /* inp_source() called with fp: load from file + or fp == NULL, intfile == TRUE: load circarray */ + if (fp || intfile) { deck = inp_readall(fp, dir_name, comfile, intfile, &expr_w_temper); /* files starting with *ng_script are user supplied command files */