Initialize otherwise uninitialized variable.
authorBen Pfaff <blp@nicira.com>
Thu, 4 Sep 2008 16:47:33 +0000 (09:47 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 4 Sep 2008 16:47:33 +0000 (09:47 -0700)
Found by valgrind.

switch/datapath.c

index c25bc3e1cafb12a04bfac70b1b8b2360b1064fd8..7382d4c6d87fcb45ddf545bab9e141d68c5c1d87 100644 (file)
@@ -440,6 +440,7 @@ remote_create(struct datapath *dp, struct rconn *rconn)
     list_push_back(&dp->remotes, &remote->node);
     remote->rconn = rconn;
     remote->cb_dump = NULL;
+    remote->n_txq = 0;
     return remote;
 }