X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fpinsched.c;h=b9c6371add0bc9728ee5ce268465838be363ca51;hb=271915d3877ab9d74836a986cb2eb483071f048b;hp=bc7bd1100f9c9efbcfeb2352e22e00922aa6bbe6;hpb=7f3adc00f8d9cc0e035cd58817a28301e62eaec8;p=openvswitch diff --git a/ofproto/pinsched.c b/ofproto/pinsched.c index bc7bd110..b9c6371a 100644 --- a/ofproto/pinsched.c +++ b/ofproto/pinsched.c @@ -230,7 +230,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;