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:
Brian Behlendorf 2013-07-23 12:37:14 -07:00
parent da91c90154
commit cd72af9c68
1 changed files with 1 additions and 1 deletions

View File

@ -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,"