X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fstatus.c;h=5e61888242cf4cccdf68548aa1b7807819deb096;hb=1a6f1e2a6d6aea97f97fc378ec29f7d04ad8c047;hp=b2cb93568abc91fc0872fd5bb914f8d8acdf6f7e;hpb=4d678233e981fa319a338f6b0949e9dc625941a4;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,