Skip to content

Commit

Permalink
Fix coverity defects: CID 154591
Browse files Browse the repository at this point in the history
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 openzfs#5435
  • Loading branch information
luozhengzheng authored and behlendorf committed Nov 30, 2016
1 parent 616fa7c commit 2d44b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/zpool/zpool_iter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2d44b04

Please sign in to comment.