summaryrefslogtreecommitdiff
path: root/ofproto/in-band.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-04-20 14:11:23 -0700
committerBen Pfaff <blp@nicira.com>2010-04-26 09:51:11 -0700
commitbad0c37193b4697cec1b6d5f1afb3413edbd9c3c (patch)
treef4fae3d32a34081cbddf1029a166574529d7caff /ofproto/in-band.c
parenta3c5ac709a32ad802534b6039fd8f762910d19d6 (diff)
downloadopenvswitch-bad0c37193b4697cec1b6d5f1afb3413edbd9c3c.tar.gz
in-band: Use NULL for null pointer constant, instead of 0.
Suggested-by: Justin Pettit <jpettit@nicira.com>
Diffstat (limited to 'ofproto/in-band.c')
-rw-r--r--ofproto/in-band.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/in-band.c b/ofproto/in-band.c
index 6f9e5c093..9f4bc5971 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];