From cf866e55ad00abb29d1e3ff913969edcc5810d35 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 20 Sep 2014 02:24:40 +0200 Subject: [PATCH] btio: Make sure voice setting are all zeroed first --- btio/btio.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.47.3