From 2d44b04b79317df32b509a381d023ba2d5b80f39 Mon Sep 17 00:00:00 2001 From: luozhengzheng Date: Thu, 1 Dec 2016 01:48:01 +0800 Subject: 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 --- cmd/zpool/zpool_iter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/zpool') 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 */ -- cgit v1.2.3