diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-08-29 22:19:18 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-08-29 22:19:18 +0000 |
commit | 69e07f5a7b3934fac5bcf4c554e14e0d0b3cec47 (patch) | |
tree | effad7c282ee3b88914d823fc8ee1343f5df4027 /audio/unix.c | |
parent | 41b71b230e0aa4b495c091e7d17c6b939ddbce79 (diff) |
Fix memory issue.
Diffstat (limited to 'audio/unix.c')
-rw-r--r-- | audio/unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/unix.c b/audio/unix.c index 6239c203..7fa2db05 100644 --- a/audio/unix.c +++ b/audio/unix.c @@ -449,6 +449,8 @@ static int cfg_to_caps(struct ipc_data_cfg *cfg, struct sbc_codec_cap *sbc_cap) { struct ipc_codec_sbc *sbc = (void *) cfg->data; + memset(sbc_cap, 0, sizeof(struct sbc_codec_cap)); + sbc_cap->cap.media_type = AVDTP_MEDIA_TYPE_AUDIO; sbc_cap->cap.media_codec_type = A2DP_CODEC_SBC; |