Skip to content

Commit

Permalink
tests/unit-test-client.c: err on the safe side, pre-initialize last_t…
Browse files Browse the repository at this point in the history
…est_title[]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Jan 26, 2025
1 parent 670d4e0 commit bb00725
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit-test-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ int main(int argc, char *argv[])
int old_slave;
char *ip_or_device = NULL;

memset(last_test_title, 0, sizeof(last_test_title));

if (argc > 1) {
if (strcmp(argv[1], "tcp") == 0) {
use_backend = TCP;
Expand Down

0 comments on commit bb00725

Please sign in to comment.