Skip to content

Commit d4bef4a

Browse files
committed
fix(ipc): terminate string array
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
1 parent d1e623a commit d4bef4a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/samples/supervisor/posix/zcbor_helpers.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ bool encode_string_array(zcbor_state_t *state, const char **arr)
5050
}
5151
}
5252

53+
return zcbor_nil_put(state, NULL);
54+
count++;
55+
5356
return zcbor_list_end_encode(state, count);
5457
}
5558

0 commit comments

Comments
 (0)