Skip to content

Commit

Permalink
tests: Fix sparse error on test-ovn.c
Browse files Browse the repository at this point in the history
Commit d5c70d4 fixed the MSVC issue
however, introduced a sparse error:
"tests/test-ovn.c:205:43: warning: Using plain integer as NULL pointer"

Use 'NULL' instead of '0'.

Signed-off-by: Alin Gabriel Serdean <[email protected]>
Acked-by: Shashank Ram <[email protected]>
  • Loading branch information
aserdean committed Sep 12, 2017
1 parent a5781d3 commit 6941409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-ovn.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ create_addr_sets(struct shash *addr_sets)
static const char *const addrs3[] = {
"00:00:00:00:00:01", "00:00:00:00:00:02", "00:00:00:00:00:03",
};
static const char *const addrs4[] = { 0 };
static const char *const addrs4[] = { NULL };

expr_addr_sets_add(addr_sets, "set1", addrs1, 3);
expr_addr_sets_add(addr_sets, "set2", addrs2, 3);
Expand Down

0 comments on commit 6941409

Please sign in to comment.