summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2011-12-02 10:30:12 +0000
committerratchov <ratchov@openbsd.org>2011-12-02 10:30:12 +0000
commit5ccd2c6de0c78ec53bf0fc4fd1bb71f81a18fae9 (patch)
tree5c742a728773ad2f32b63666ef60582a8fc7390e
parentremove unused 'reqrate' parameter (diff)
downloadwireguard-openbsd-5ccd2c6de0c78ec53bf0fc4fd1bb71f81a18fae9.tar.xz
wireguard-openbsd-5ccd2c6de0c78ec53bf0fc4fd1bb71f81a18fae9.zip
initialize device reference counter, unbreaks -aoff
with MALLOC_OPTIONS=J
-rw-r--r--usr.bin/aucat/dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/aucat/dev.c b/usr.bin/aucat/dev.c
index 2b0f5f2e9e3..dd742136f4b 100644
--- a/usr.bin/aucat/dev.c
+++ b/usr.bin/aucat/dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.c,v 1.71 2011/11/20 22:54:51 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.72 2011/12/02 10:30:12 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -141,6 +141,7 @@ dev_new(char *path, unsigned mode,
d->hold = hold;
d->autovol = autovol;
d->autostart = 0;
+ d->refcnt = 0;
d->pstate = DEV_CLOSED;
d->serial = 0;
for (i = 0; i < CTL_NSLOT; i++) {