summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluozhengzheng <[email protected]>2016-12-01 01:48:01 +0800
committerBrian Behlendorf <[email protected]>2016-11-30 10:48:01 -0700
commit2d44b04b79317df32b509a381d023ba2d5b80f39 (patch)
tree927df16e779b0f89d760d2501df63f3e633f8021
parent616fa7c02b0cc373f011998f56ed53bb37742d13 (diff)
Fix coverity defects: CID 154591
CID 154591: Incorrect expression (SIZEOF_MISMATCH) Reviewed-by: Gvozden Neskovic <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: luozhengzheng <[email protected]> Closes #5435
-rw-r--r--cmd/zpool/zpool_iter.c2
1 files changed, 1 insertions, 1 deletions
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 */