Skip to content

Commit

Permalink
explicit zero-intialization
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Apr 8, 2024
1 parent 7a94a55 commit 0275363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/z_api_payload_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

void test_reader() {
uint8_t data[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
uint8_t data_out[10] = {};
uint8_t data_out[10] = {0};
z_bytes_t bytes = {.start = data, .len = 10 };

zc_owned_payload_t payload = zc_payload_encode_from_bytes(bytes);
Expand Down

0 comments on commit 0275363

Please sign in to comment.