Diff between ca92eb9aec68cc42dfd463b66528eecea937e437 and 1da02a79cb8628fe84e1b06f744d7b6390c89093
Changed Files
| File | Additions | Deletions | Status |
| audio/avctp.c | +2 | -0 | modified |
Full Patch
diff --git a/audio/avctp.c b/audio/avctp.c
index 9ef6161..074eabd 100644
--- a/audio/avctp.c
+++ b/audio/avctp.c
@@ -941,6 +941,8 @@ static int avctp_send(struct avctp *session, uint8_t transaction, uint8_t cr,
sk = g_io_channel_unix_get_fd(session->io);
+ memset(buf, 0, sizeof(buf));
+
avctp = (void *) buf;
avc = (void *) &buf[AVCTP_HEADER_LENGTH];