[ovs-dev] [RefactorInBand 5/5] in-band: Use NULL for null pointer constant, instead of 0.

Ben Pfaff blp at nicira.com
Tue Apr 20 21:15:39 UTC 2010


Suggested-by: Justin Pettit <jpettit at nicira.com>
---
 ofproto/in-band.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ofproto/in-band.c b/ofproto/in-band.c
index 6f9e5c0..9f4bc59 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];
-- 
1.6.6.1





More information about the dev mailing list