Prevent reading from NULL

This commit is contained in:
Holger Vogt 2023-04-17 11:54:25 +02:00
parent 924dc10368
commit d2177bbd69
1 changed files with 5 additions and 0 deletions

View File

@ -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;