From d5ffa7f2fedbd3f9a4156f78e5fe344cc51dbedf Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 21 Jul 2011 15:39:08 -0700 Subject: [PATCH] ofproto-dpif: Initialize 'may_enable' at port construction time. Silences a valgrind warning: ==640== Conditional jump or move depends on uninitialised value(s) ==640== at 0x808E623: run (ofproto-dpif.c:1444) ==640== by 0x8086593: ofproto_run (ofproto.c:755) ==640== by 0x806EB80: bridge_run (bridge.c:1397) ==640== by 0x806F66C: main (ovs-vswitchd.c:90) --- ofproto/ofproto-dpif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index e39f6159..c88569cf 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -714,6 +714,7 @@ port_construct(struct ofport *port_) port->bundle = NULL; port->cfm = NULL; port->tag = tag_create_random(); + port->may_enable = true; if (ofproto->sflow) { dpif_sflow_add_port(ofproto->sflow, port->odp_port, -- 2.30.2