git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3c5ac7
)
in-band: Use NULL for null pointer constant, instead of 0.
author
Ben Pfaff
<blp@nicira.com>
Tue, 20 Apr 2010 21:11:23 +0000
(14:11 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 26 Apr 2010 16:51:11 +0000
(09:51 -0700)
Suggested-by: Justin Pettit <jpettit@nicira.com>
ofproto/in-band.c
patch
|
blob
|
history
diff --git
a/ofproto/in-band.c
b/ofproto/in-band.c
index
6f9e5c0
..
9f4bc59
100644
(file)
--- 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];