summaryrefslogtreecommitdiffstats
path: root/audio/a2dp.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-12-07 08:52:31 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-12-07 08:52:31 +0000
commit70f4ad8b4bf7d477bcfc7efdec7f25b1f9517cd3 (patch)
tree3cfc2e7a86a853d3eb56a12e37bd1c25083c2cd5 /audio/a2dp.c
parent1b2f232ee7f343178d90dc194a773cf45f26a84b (diff)
Fix another potential uninitialized memory access issue
Diffstat (limited to 'audio/a2dp.c')
-rw-r--r--audio/a2dp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/a2dp.c b/audio/a2dp.c
index 7b17f941..e4f65f3e 100644
--- a/audio/a2dp.c
+++ b/audio/a2dp.c
@@ -1082,7 +1082,7 @@ unsigned int a2dp_source_resume(struct avdtp *session, struct a2dp_sep *sep,
struct a2dp_setup_cb *cb_data;
struct a2dp_setup *setup;
- cb_data = g_new(struct a2dp_setup_cb, 1);
+ cb_data = g_new0(struct a2dp_setup_cb, 1);
cb_data->resume_cb = cb;
cb_data->user_data = user_data;
cb_data->id = ++cb_id;