mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-06 06:49:53 +02:00
Merge pull request #194 from marckleinebudde/canfdtest-initialize-tx_frames
canfdtest: can_echo_gen(): initialize tx_frames with zero
This commit is contained in:
+1
-1
@@ -240,7 +240,7 @@ static int can_echo_dut(void)
|
|||||||
|
|
||||||
static int can_echo_gen(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];
|
int recv_tx[CAN_MSG_COUNT];
|
||||||
struct can_frame rx_frame;
|
struct can_frame rx_frame;
|
||||||
unsigned char counter = 0;
|
unsigned char counter = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user