Prevent from endless loop

This commit is contained in:
Holger Vogt 2023-01-28 14:16:37 +01:00
parent 7e36c72735
commit acbae39c1b
1 changed files with 1 additions and 1 deletions

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");
}