~fsx/protobluff

496280d4407504eec00a33702da40670dc6f6864 — Frank Smit 10 months ago ccbae48
zero init
2 files changed, 3 insertions(+), 3 deletions(-)

M src/core/buffer.h
M tests/message/cursor/test.c
M src/core/buffer.h => src/core/buffer.h +1 -1
@@ 75,7 75,7 @@ pb_buffer_create_zero_copy_internal(uint8_t data[], size_t size) {
PB_INLINE PB_WARN_UNUSED_RESULT
pb_buffer_t
pb_buffer_create_invalid(void) {
  pb_buffer_t buffer = {};
  pb_buffer_t buffer = {0};
  return buffer;
}


M tests/message/cursor/test.c => tests/message/cursor/test.c +2 -2
@@ 419,7 419,7 @@ START_TEST(test_create_nested) {
    pb_message_destroy(&(messages[m]));

  /* Create tags */
  pb_tag_t tags[101] = {};
  pb_tag_t tags[101] = {0};
  for (size_t t = 0; t < 100; t++)
    tags[t] = 10;
  tags[100] = 1;


@@ 465,7 465,7 @@ START_TEST(test_create_nested_invalid) {
  ck_assert_uint_eq(PB_ERROR_INVALID, pb_message_error(&message));

  /* Create tags */
  pb_tag_t tags[101] = {};
  pb_tag_t tags[101] = {0};
  for (size_t t = 0; t < 100; t++)
    tags[t] = 10;
  tags[100] = 1;