diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2010-06-29 06:57:01 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2010-06-29 06:57:01 +0000 |
commit | ca0a8720b4410f74b15c879b4ff0917b80cefa40 (patch) | |
tree | dae7b96326194855d7f3be6d7f8fd07545fafa92 | |
parent | 5b303f4a0e89c30b577d39e8e3552c12b09a06cc (diff) |
explicitely initialize members of struct dev in dev_open()
fixes crash found by nicm
ok ratchov
-rw-r--r-- | usr.bin/aucat/dev.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/aucat/dev.c b/usr.bin/aucat/dev.c index 0b5005c4356..c32dca7cf6a 100644 --- a/usr.bin/aucat/dev.c +++ b/usr.bin/aucat/dev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev.c,v 1.60 2010/06/25 07:32:05 ratchov Exp $ */ +/* $OpenBSD: dev.c,v 1.61 2010/06/29 06:57:00 jakemsr Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -216,7 +216,10 @@ dev_open(struct dev *d) d->rec = NULL; d->play = NULL; d->mon = NULL; + d->mix = NULL; + d->sub = NULL; d->submon = NULL; + d->midi = NULL; d->rate = 0; /* |