diff options
author | 1996-10-07 19:55:27 +0000 | |
---|---|---|
committer | 1996-10-07 19:55:27 +0000 | |
commit | e30fd9b50d20f5c1a1f6b9e987e754999de02b88 (patch) | |
tree | b11c8771c7784a85b9e2ab88a4728f735d01ebb2 | |
parent | clear quotes not buf; from hbriceno@lcs.mit.edu (diff) | |
download | wireguard-openbsd-e30fd9b50d20f5c1a1f6b9e987e754999de02b88.tar.xz wireguard-openbsd-e30fd9b50d20f5c1a1f6b9e987e754999de02b88.zip |
a teeny bit more care
-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)); |