X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fstatus.c;h=5e61888242cf4cccdf68548aa1b7807819deb096;hb=fe55ad159d8fd396a9e4914a03eea93d096d03b1;hp=b2cb93568abc91fc0872fd5bb914f8d8acdf6f7e;hpb=39fb08818bbd9c438dbf23caa89937c663451b5a;p=openvswitch diff --git a/ofproto/status.c b/ofproto/status.c index b2cb9356..5e618882 100644 --- a/ofproto/status.c +++ b/ofproto/status.c @@ -177,7 +177,7 @@ switch_status_cb(struct status_reply *sr, void *ss_) struct switch_status * switch_status_create(const struct ofproto *ofproto) { - struct switch_status *ss = xcalloc(1, sizeof *ss); + struct switch_status *ss = xzalloc(sizeof *ss); ss->booted = time_now(); list_init(&ss->categories); ss->config_cat = switch_status_register(ss, "config", config_status_cb,