From 506f6f30431dc31235725aa2943d844286429bf5 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Sun, 8 Dec 2019 00:52:17 +0100 Subject: [PATCH] canfdtest: can_echo_gen(): initialize tx_frames with zero This avoids having the padding in the struct can_fame contain bogus values, which are interpreted by "candump -x" as CAN-FD BRS and ESI values. Signed-off-by: Marc Kleine-Budde --- canfdtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canfdtest.c b/canfdtest.c index cf59a3a..b06193b 100644 --- a/canfdtest.c +++ b/canfdtest.c @@ -236,7 +236,7 @@ static int can_echo_dut(void) static int can_echo_gen(void) { - struct can_frame tx_frames[CAN_MSG_COUNT]; + struct can_frame tx_frames[CAN_MSG_COUNT] = { }; int recv_tx[CAN_MSG_COUNT]; struct can_frame rx_frame; unsigned char counter = 0;