mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-04 19:10:57 +02:00
Prevent reading from NULL
This commit is contained in:
@@ -100,6 +100,11 @@ void com_optran(wordlist* wl) {
|
||||
getdata = TRUE;
|
||||
}
|
||||
|
||||
if (!getdata && !ft_curckt) {
|
||||
/* no circuit, but optran already set */
|
||||
return;
|
||||
}
|
||||
|
||||
int saved = errno;
|
||||
errno = 0;
|
||||
nooptran = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user