projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae8f13e
)
vswitchd: Add missing * to use of sizeof.
author
Ben Pfaff
<blp@nicira.com>
Tue, 9 Feb 2010 18:20:13 +0000
(10:20 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 9 Feb 2010 18:20:13 +0000
(10:20 -0800)
Found using coccinelle and coccicheck (http://coccinelle.lip6.fr/).
vswitchd/bridge.c
patch
|
blob
|
history
diff --git
a/vswitchd/bridge.c
b/vswitchd/bridge.c
index e945ca84ca4312262ef8f0d1201b8d59c54380e4..05ace79886840959e1ae7e44bb44331c33fffd22 100644
(file)
--- a/
vswitchd/bridge.c
+++ b/
vswitchd/bridge.c
@@
-3680,7
+3680,7
@@
mirror_collect_vlans(struct mirror *m, const struct ovsrec_mirror *cfg,
size_t n_vlans;
size_t i;
- *vlans = xmalloc(sizeof *vlans * cfg->n_select_vlan);
+ *vlans = xmalloc(sizeof *
*
vlans * cfg->n_select_vlan);
n_vlans = 0;
for (i = 0; i < cfg->n_select_vlan; i++) {
int64_t vlan = cfg->select_vlan[i];