From: luozhengzheng Date: Wed, 30 Nov 2016 17:48:01 +0000 (+0800) Subject: Fix coverity defects: CID 154591 X-Git-Tag: zfs-0.7.0-rc3~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d44b04b79317df32b509a381d023ba2d5b80f39;p=zfs Fix coverity defects: CID 154591 CID 154591: Incorrect expression (SIZEOF_MISMATCH) Reviewed-by: Gvozden Neskovic Reviewed-by: Brian Behlendorf Signed-off-by: luozhengzheng Closes #5435 --- diff --git a/cmd/zpool/zpool_iter.c b/cmd/zpool/zpool_iter.c index b397c7ec2..ac64e977e 100644 --- a/cmd/zpool/zpool_iter.c +++ b/cmd/zpool/zpool_iter.c @@ -447,7 +447,7 @@ vdev_cmd_data_list_t * all_pools_for_each_vdev_run(int argc, char **argv, char *cmd) { vdev_cmd_data_list_t *vcdl; - vcdl = safe_malloc(sizeof (vcdl)); + vcdl = safe_malloc(sizeof (vdev_cmd_data_list_t)); vcdl->cmd = cmd; /* Gather our list of all vdevs in all pools */