X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fin-band.c;h=9f4bc597144b9f0263604bac4e4875d2a0f44f5c;hb=1c6d11a82e7a48c26a6676ddecfcf29c2e853654;hp=6f9e5c0930a628683f89bba12b5db0951761dbe0;hpb=a3c5ac709a32ad802534b6039fd8f762910d19d6;p=openvswitch diff --git a/ofproto/in-band.c b/ofproto/in-band.c index 6f9e5c09..9f4bc597 100644 --- a/ofproto/in-band.c +++ b/ofproto/in-band.c @@ -833,7 +833,7 @@ in_band_set_remotes(struct in_band *ib, struct rconn **remotes, size_t n) free(ib->remotes); /* Set up new remotes. */ - ib->remotes = n ? xzalloc(n * sizeof *ib->remotes) : 0; + ib->remotes = n ? xzalloc(n * sizeof *ib->remotes) : NULL; ib->n_remotes = n; for (i = 0; i < n; i++) { ib->remotes[i].rconn = remotes[i];