X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fpinsched.c;h=a4f5bfad5d047380811c2946119358476071dbdb;hb=1a6f1e2a6d6aea97f97fc378ec29f7d04ad8c047;hp=0afd22ff645958861172c51be308349deb6f6f07;hpb=a5e54d9b6f8002f34cc792df69e6eda68cf95223;p=openvswitch diff --git a/ofproto/pinsched.c b/ofproto/pinsched.c index 0afd22ff..a4f5bfad 100644 --- a/ofproto/pinsched.c +++ b/ofproto/pinsched.c @@ -227,7 +227,7 @@ pinsched_create(int rate_limit, int burst_limit, struct switch_status *ss) { struct pinsched *ps; - ps = xcalloc(1, sizeof *ps); + ps = xzalloc(sizeof *ps); port_array_init(&ps->queues); ps->n_queued = 0; ps->last_tx_port = PORT_ARRAY_SIZE;