[pulseaudio-discuss] [PATCH] bluetooth: Fix uninitialized variable.

Tanu Kaskinen tanu.kaskinen at digia.com
Thu Mar 22 05:16:07 PDT 2012


---
 src/modules/bluetooth/module-bluetooth-device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index d5240f5..440b4de 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -1465,7 +1465,7 @@ static int a2dp_process_push(struct userdata *u) {
         void *d;
         ssize_t l;
         size_t to_write, to_decode;
-        unsigned frame_count;
+        unsigned frame_count = 0;
 
         a2dp_prepare_buffer(u);
 
-- 
1.7.8



More information about the pulseaudio-discuss mailing list