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 c25bc3e..7382d4c 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;
 }