aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-08-08 15:59:24 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2017-08-08 15:59:24 +0200
commit9453f7472a8828d39cec617d9f9d27260a28ab38 (patch)
tree378316942bb8670fe19486eb96c38bc066420a1b
parent7c9764b6b06ef8f32320a20ebbbe3ffbd7c39ff3 (diff)
cec-compliance: fix uninitialized format ID array
The array with audio format IDs used to create the Request Short Audio Descriptor message was uninitialized. Set to 0. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/cec-compliance/cec-test-audio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/cec-compliance/cec-test-audio.cpp b/utils/cec-compliance/cec-test-audio.cpp
index 2a3c23f3..baa18d83 100644
--- a/utils/cec-compliance/cec-test-audio.cpp
+++ b/utils/cec-compliance/cec-test-audio.cpp
@@ -421,7 +421,7 @@ static int sac_sad_req_multiple(struct node *node, unsigned me, unsigned la, boo
with a single format, we also get a response when the same audio format
occurs in a request together with other formats. */
struct cec_msg msg = {};
- __u8 audio_format_id[4];
+ __u8 audio_format_id[4] = { };
__u8 audio_format_code[4];
for (int i = 0; i < 4; i++) {

Privacy Policy