Skip to content

Commit

Permalink
ovstest: Initialize command mode to RO
Browse files Browse the repository at this point in the history
When the read-only infrastucture support was added, the test-suite
registration was missed.  This causes tools like valgrind to complain
about uninitialized variable usage.

Fixes: 1f4a725 ("Add read-only option to ovs-dpctl and...")
Cc: Ryan Moats <[email protected]>
Signed-off-by: Aaron Conole <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
apconole authored and blp committed Oct 4, 2016
1 parent 452a1f5 commit 2e3cf77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/ovstest.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ ovstest_register(const char *test_name, ovs_cmdl_handler f)
test_cmd.min_args = 0;
test_cmd.max_args = INT_MAX;
test_cmd.handler = f;
test_cmd.mode = OVS_RO;

add_command(&test_cmd);
}
Expand Down

0 comments on commit 2e3cf77

Please sign in to comment.