X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fdiscovery.c;h=c76250664cd9aa8dee9cfb82a37fe3b1f00f4d3c;hb=675febfa2f31372e45e2a6a28ce19256b22106d7;hp=2868db5a8599f4b895385b8ac8e0b59695497d99;hpb=39fb08818bbd9c438dbf23caa89937c663451b5a;p=openvswitch diff --git a/ofproto/discovery.c b/ofproto/discovery.c index 2868db5a..c7625066 100644 --- a/ofproto/discovery.c +++ b/ofproto/discovery.c @@ -102,7 +102,7 @@ discovery_create(const char *re, bool update_resolv_conf, char local_name[IF_NAMESIZE]; int error; - d = xcalloc(1, sizeof *d); + d = xzalloc(sizeof *d); /* Controller regular expression. */ error = discovery_set_accept_controller_re(d, re);