From acbae39c1bd0e6e3fa8dae7cb738bb67ae837dce Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 28 Jan 2023 14:16:37 +0100 Subject: [PATCH] Prevent from endless loop --- src/misc/ivars.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/ivars.c b/src/misc/ivars.c index 3d1878065..51263a200 100644 --- a/src/misc/ivars.c +++ b/src/misc/ivars.c @@ -111,7 +111,7 @@ ivars(char *argv0) if (path_end) { char* exec_only = strstr(path_end + 7, "ngspice"); while (exec_only) { - path_end = strstr(Spice_Exec_Path, "ngspice"); + path_end = strstr(exec_only, "ngspice"); if (path_end) exec_only = strstr(path_end + 7, "ngspice"); }