Prevent from endless loop
This commit is contained in:
parent
7e36c72735
commit
acbae39c1b
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue