Prevent from endless loop

This commit is contained in:
Holger Vogt
2023-01-28 17:01:03 +01:00
parent f8d0246ec3
commit 6ef94cb9f2
+1 -1
View File
@@ -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");
}