X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto.c;h=e0f1b6632509bddd14e1c267b148ef7e98da7c02;hb=0a6f55420508c31af9fe41aafdd26ce8462cc1be;hp=82008be10f4ed50c050669b2734b9455215c998c;hpb=c4617b3c28b9a96e09fdbbe2682b875dbfeaec5b;p=openvswitch diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 82008be1..e0f1b663 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -1567,7 +1567,7 @@ make_ofport(const struct dpif_port *dpif_port) return NULL; } - ofport = xmalloc(sizeof *ofport); + ofport = xzalloc(sizeof *ofport); ofport->netdev = netdev; ofport->odp_port = dpif_port->port_no; ofport->opp.port_no = odp_port_to_ofp_port(dpif_port->port_no);