Skip to content

Commit

Permalink
Fix remaining "uninitialized local variable" used warning by MSVC.
Browse files Browse the repository at this point in the history
Signed-off-by: Gurucharan Shetty <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
shettyg committed Sep 15, 2014
1 parent 355ead6 commit d72eff6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ofproto/ofproto-dpif-upcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -1750,7 +1750,7 @@ upcall_unixctl_dump_wait(struct unixctl_conn *conn,
void *aux OVS_UNUSED)
{
if (list_is_singleton(&all_udpifs)) {
struct udpif *udpif;
struct udpif *udpif = NULL;
size_t len;

udpif = OBJECT_CONTAINING(list_front(&all_udpifs), udpif, list_node);
Expand Down
3 changes: 2 additions & 1 deletion tests/test-cmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ check_cmap(struct cmap *cmap, const int values[], size_t n,
/* Here we test iteration with cmap_next_position() */
i = 0;
while ((node = cmap_next_position(cmap, &pos))) {
struct element *e = OBJECT_CONTAINING(node, e, node);
struct element *e = NULL;
e = OBJECT_CONTAINING(node, e, node);

assert(i < n);
cmap_values2[i++] = e->value;
Expand Down

0 comments on commit d72eff6

Please sign in to comment.