summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-10-07 19:55:27 +0000
committerderaadt <deraadt@openbsd.org>1996-10-07 19:55:27 +0000
commite30fd9b50d20f5c1a1f6b9e987e754999de02b88 (patch)
treeb11c8771c7784a85b9e2ab88a4728f735d01ebb2
parentclear quotes not buf; from hbriceno@lcs.mit.edu (diff)
downloadwireguard-openbsd-e30fd9b50d20f5c1a1f6b9e987e754999de02b88.tar.xz
wireguard-openbsd-e30fd9b50d20f5c1a1f6b9e987e754999de02b88.zip
a teeny bit more care
-rw-r--r--sys/kern/tty_subr.c3
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));