diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-10-07 19:55:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-10-07 19:55:28 +0000 |
commit | 1e468eae4d6e2d3001fee879ca3817b28624124f (patch) | |
tree | cf72e49cbbbfc225387c452a04e579558468305e /sys/kern | |
parent | dd849116adfbca2ff315b9d0398c252247022046 (diff) |
a teeny bit more care
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/tty_subr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/tty_subr.c b/sys/kern/tty_subr.c index 95b0ff77e88..74db2eef62d 100644 --- a/sys/kern/tty_subr.c +++ b/sys/kern/tty_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty_subr.c,v 1.5 1996/10/07 19:45:57 deraadt Exp $ */ +/* $OpenBSD: tty_subr.c,v 1.6 1996/10/07 19:55:27 deraadt Exp $ */ /* $NetBSD: tty_subr.c,v 1.13 1996/02/09 19:00:43 christos Exp $ */ /* @@ -102,6 +102,7 @@ clalloc(clp, size, quot) MALLOC(clp->c_cq, u_char *, QMEM(size), M_TTYS, M_WAITOK); if (!clp->c_cq) { FREE(clp->c_cs, M_TTYS); + clp->c_cs = NULL; return (-1); } bzero(clp->c_cq, QMEM(size)); |