diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2011-12-02 10:30:13 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2011-12-02 10:30:13 +0000 |
commit | 3e0284ef69ec2715683c38fc5f1eb13224cf4452 (patch) | |
tree | 98715eafd9957596cf086652f246b9fa17c13427 /usr.bin | |
parent | 1c5445d72bfb44a1154e830f45e544e225e23f54 (diff) |
initialize device reference counter, unbreaks -aoff
with MALLOC_OPTIONS=J
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/aucat/dev.c | 3 |
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++) { |