diff options
-rw-r--r-- | btio/btio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/btio/btio.c b/btio/btio.c index 50760f043..6277507ed 100644 --- a/btio/btio.c +++ b/btio/btio.c @@ -777,6 +777,7 @@ voice: if (!voice) return TRUE; + memset(&bt_voice, 0, sizeof(bt_voice)); bt_voice.setting = voice; if (setsockopt(sock, SOL_BLUETOOTH, BT_VOICE, &bt_voice, sizeof(bt_voice)) < 0) { |