small fix in sigvec

This commit is contained in:
ceriel 1988-05-04 16:16:41 +00:00
parent b536454c5b
commit f63363cfb8

View file

@ -29,7 +29,7 @@ sigvec(sig,vec,ovec)
_sigfunc[sig] = old; _sigfunc[sig] = old;
return -1; return -1;
} }
if (ovec->handler == _sigtramp) { if (ovec && ovec->handler == _sigtramp) {
ovec->handler = old; ovec->handler = old;
} }
return 0; return 0;