mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 02:49:32 +03:00
Fix 'zpool list -H' error code
Due to an uninitialized variable it was possible for the command 'zpool list -H' to return a non-zero error when there are no pools. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #1605
This commit is contained in:
parent
da91c90154
commit
cd72af9c68
@ -3059,7 +3059,7 @@ int
|
||||
zpool_do_list(int argc, char **argv)
|
||||
{
|
||||
int c;
|
||||
int ret;
|
||||
int ret = 0;
|
||||
list_cbdata_t cb = { 0 };
|
||||
static char default_props[] =
|
||||
"name,size,allocated,free,capacity,dedupratio,"
|
||||
|
Loading…
Reference in New Issue
Block a user