From 63b4cf05de07c8a837aea9b201d078aca3810e9b Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 9 Aug 2019 22:18:36 +0200 Subject: [PATCH] Do not bail out if 'load file' command has unavailable file, just post error message and continue A fix to https://sourceforge.net/p/ngspice/discussion/127605/thread/986c04f22b/ by Clyde --- src/frontend/rawfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/rawfile.c b/src/frontend/rawfile.c index 0ecf0c354..a4b50ab42 100644 --- a/src/frontend/rawfile.c +++ b/src/frontend/rawfile.c @@ -304,7 +304,7 @@ raw_read(char *name) { if ((fp = fopen(name, "rb")) == NULL) { perror(name); - controlled_exit(EXIT_FAILURE); + return NULL; } /* Since we call cp_evloop() from here, we have to do this junk. */