diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2007-09-24 19:23:42 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2007-09-24 19:23:42 +0000 |
commit | 1a4cd50e8598a17a8604984006e8e4bb001cf29c (patch) | |
tree | a05972879544041270927a6449de1ed507b5c787 | |
parent | b32d69b6591f14aa7f3bfac9f3e78c45e377a7f7 (diff) |
fix audioctl(1) returning bugus values of 'output_muted' because of
uninitialized variable.
found by deanna@, ok jackmsr@
-rw-r--r-- | sys/dev/audio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 7ab08aba6d5..8b630d1b1d8 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: audio.c,v 1.78 2007/09/17 13:46:11 jakemsr Exp $ */ +/* $OpenBSD: audio.c,v 1.79 2007/09/24 19:23:41 ratchov Exp $ */ /* $NetBSD: audio.c,v 1.119 1999/11/09 16:50:47 augustss Exp $ */ /* @@ -2243,6 +2243,8 @@ au_get_mute(struct audio_softc *sc, struct au_mixer_ports *ports, u_char *mute) mixer_ctrl_t ct; int error; + *mute = 0; + /* if no master, silently ignore request */ if (ports->master == -1) return 0; |