Skip to content

Commit ca05e5f

Browse files
tests: Initialize command options in zbc_test_zone_activate
This fixes mysterious test failures observed in CI test environment. Signed-off-by: Dmitry Fomichev <[email protected]>
1 parent 435f2ba commit ca05e5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/programs/zone_activate/zbc_test_zone_activate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ int main(int argc, char **argv)
352352
return 1;
353353
}
354354

355+
memset(&opts, 0, sizeof(opts));
356+
355357
/* Parse options */
356358
for (i = 1; i < (argc - 1); i++) {
357359
if (argv[i][0] != '-')

0 commit comments

Comments
 (0)