Skip to content

Commit

Permalink
Zero-initialize rcutils_string_array_t in test_string_array (#446)
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
  • Loading branch information
christophebedard authored Jan 26, 2024
1 parent fb465d7 commit 0f80ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_string_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ TEST(test_string_array, string_array_resize) {
rcutils_reset_error();

// Start with 8 elements
rcutils_string_array_t sa0;
rcutils_string_array_t sa0 = rcutils_get_zero_initialized_string_array();
ret = rcutils_string_array_init(&sa0, 8, &allocator);
ASSERT_EQ(RCUTILS_RET_OK, ret);

Expand Down

0 comments on commit 0f80ab1

Please sign in to comment.