From: Ben Pfaff Date: Tue, 9 Feb 2010 18:20:13 +0000 (-0800) Subject: vswitchd: Add missing * to use of sizeof. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b523ea7a82cd9e67b17a1b36b69dc3398c85f07;p=openvswitch vswitchd: Add missing * to use of sizeof. Found using coccinelle and coccicheck (http://coccinelle.lip6.fr/). --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index e945ca84..05ace798 100644 --- 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];