Skip to content

Commit a144bbd

Browse files
Fix maybe unitialized error when building with release configuration
1 parent 57b0c90 commit a144bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reliable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,7 @@ void test_sequence_buffer_rollover()
24002400
int i;
24012401
for (i = 0; i <= 32767; ++i)
24022402
{
2403-
uint8_t packet_data[16];
2403+
uint8_t packet_data[16] = {0};
24042404
int packet_bytes = sizeof( packet_data ) / sizeof( uint8_t );
24052405
reliable_endpoint_next_packet_sequence( context.sender );
24062406
reliable_endpoint_send_packet( context.sender, packet_data, packet_bytes );

0 commit comments

Comments
 (0)