diff options
author | Brian Behlendorf <[email protected]> | 2011-09-27 16:32:53 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-09-27 16:56:38 -0700 |
commit | c70602f1eada6ae9d2c3442e3d469c7227d019ab (patch) | |
tree | 358dce0dc6d9f6fc89f0fc19e94f860baa7880dd /cmd/zfs/zfs_main.c | |
parent | dee28b070057224dec67b779e80be14493a4ffb7 (diff) |
Fix uninitialized varible in zfs_do_userspace()
When compiling under Debian Lenny with gcc version 4.3.2
(Debian 4.3.2-1.1) the following warning occurs. To quiet
the warning initialize 'error' to zero. Newer versions of
gcc correctly determine that this uninitialized varible is
impossible because ZFS_NUM_USERQUOTA_PROPS is known to be
greater than zero.
cmd/zfs/zfs_main.c:2377: warning: "error" may be
used uninitialized in this function
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'cmd/zfs/zfs_main.c')
-rw-r--r-- | cmd/zfs/zfs_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c index 82a6d569f..a052be520 100644 --- a/cmd/zfs/zfs_main.c +++ b/cmd/zfs/zfs_main.c @@ -2374,7 +2374,7 @@ zfs_do_userspace(int argc, char **argv) boolean_t prtnum = B_FALSE; boolean_t parseable = B_FALSE; boolean_t sid2posix = B_FALSE; - int error; + int error = 0; int c; zfs_sort_column_t *default_sortcol = NULL; zfs_sort_column_t *sortcol = NULL; |