mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +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)
|
zpool_do_list(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
int ret;
|
int ret = 0;
|
||||||
list_cbdata_t cb = { 0 };
|
list_cbdata_t cb = { 0 };
|
||||||
static char default_props[] =
|
static char default_props[] =
|
||||||
"name,size,allocated,free,capacity,dedupratio,"
|
"name,size,allocated,free,capacity,dedupratio,"
|
||||||
|
Loading…
Reference in New Issue
Block a user