vswitchd: Add missing * to use of sizeof.
authorBen Pfaff <blp@nicira.com>
Tue, 9 Feb 2010 18:20:13 +0000 (10:20 -0800)
committerBen 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

index e945ca84ca4312262ef8f0d1201b8d59c54380e4..05ace79886840959e1ae7e44bb44331c33fffd22 100644 (file)
@@ -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];