From: Ben Pfaff Date: Tue, 20 Apr 2010 21:11:23 +0000 (-0700) Subject: in-band: Use NULL for null pointer constant, instead of 0. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bad0c37193b4697cec1b6d5f1afb3413edbd9c3c;p=openvswitch in-band: Use NULL for null pointer constant, instead of 0. Suggested-by: Justin Pettit --- 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];