From 0b523ea7a82cd9e67b17a1b36b69dc3398c85f07 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 9 Feb 2010 10:20:13 -0800 Subject: [PATCH] vswitchd: Add missing * to use of sizeof. Found using coccinelle and coccicheck (http://coccinelle.lip6.fr/). --- vswitchd/bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.30.2