X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fpinsched.c;h=a4f5bfad5d047380811c2946119358476071dbdb;hb=bb1c67c813c9bd80c2bd9acf2bf5158b48841c61;hp=0afd22ff645958861172c51be308349deb6f6f07;hpb=4d678233e981fa319a338f6b0949e9dc625941a4;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;