]> git.proxmox.com Git - mirror_zfs.git/commit - cmd/zfs/zfs_main.c
Fix uninitialized varible in zfs_do_userspace()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 27 Sep 2011 23:32:53 +0000 (16:32 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 27 Sep 2011 23:56:38 +0000 (16:56 -0700)
commitc70602f1eada6ae9d2c3442e3d469c7227d019ab
tree358dce0dc6d9f6fc89f0fc19e94f860baa7880dd
parentdee28b070057224dec67b779e80be14493a4ffb7
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 <behlendorf1@llnl.gov>
cmd/zfs/zfs_main.c