X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstp.c;h=cf1b2f981c559d139ffcb3439f1e3430587d7662;hb=2d2d6d4a71776813f8d2fd1af1051f22b836befc;hp=87230bd9a27fd7c1979b38dc9982f5eaab45cc02;hpb=a14bc59fb8f27db193d74662dc9c5cb8237177ef;p=openvswitch diff --git a/lib/stp.c b/lib/stp.c index 87230bd9..cf1b2f98 100644 --- a/lib/stp.c +++ b/lib/stp.c @@ -214,7 +214,7 @@ stp_create(const char *name, stp_identifier bridge_id, struct stp *stp; struct stp_port *p; - stp = xcalloc(1, sizeof *stp); + stp = xzalloc(sizeof *stp); stp->name = xstrdup(name); stp->bridge_id = bridge_id; if (!(stp->bridge_id >> 48)) {