mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-26 09:54:22 +03:00
Fix coverity defects: CID 154591
CID 154591: Incorrect expression (SIZEOF_MISMATCH) Reviewed-by: Gvozden Neskovic <neskovic@gmail.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: luozhengzheng <luo.zhengzheng@zte.com.cn> Closes #5435
This commit is contained in:
parent
616fa7c02b
commit
2d44b04b79
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user