sndiod: Initialize dev->master_enabled earlier
authorratchov <ratchov@openbsd.org>
Mon, 8 Mar 2021 09:38:36 +0000 (09:38 +0000)
committerratchov <ratchov@openbsd.org>
Mon, 8 Mar 2021 09:38:36 +0000 (09:38 +0000)
commit2e623beb852068a3287fc94728e9384e231f281a
tree81a9f66dd17377bd87c4e4ff78ffe888a33348fc
parent971ff709ceb2128f78769221106f6718450ccd0c
sndiod: Initialize dev->master_enabled earlier

This is better style as since recently dev->master_enabled is used by
the ctlslot_xxx family functions which -- in the future -- could be
called with the device closed.

No behavior change.
usr.bin/sndiod/dev.c