Guard against us having no tty pointer.

This commit is contained in:
Poul-Henning Kamp 2004-06-27 11:29:54 +00:00
parent e3625e9c22
commit ae404e3427

View File

@ -1875,7 +1875,8 @@ siointr1(com)
recv_data = 0;
}
++com->bytes_in;
if (com->tp->t_hotchar != 0 && recv_data == com->tp->t_hotchar)
if (com->tp != NULL &&
com->tp->t_hotchar != 0 && recv_data == com->tp->t_hotchar)
swi_sched(sio_fast_ih, 0);
ioptr = com->iptr;
if (ioptr >= com->ibufend)