diff options
author | Brian Behlendorf <[email protected]> | 2013-07-23 12:37:14 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-07-23 12:39:05 -0700 |
commit | cd72af9c681779cc88af389bd227a655e776476c (patch) | |
tree | ba303783ecea72af2377425f217d3d1a54067743 /cmd | |
parent | da91c90154f32c56225e44b63aedf7c8d393f38c (diff) |
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 <[email protected]>
Closes #1605
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/zpool/zpool_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index 9d4d12844..b96fbe4ac 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -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," |