diff options
author | Brian Behlendorf <[email protected]> | 2011-08-19 16:24:04 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-08-19 16:26:06 -0700 |
commit | 4c069d349440cbf1ebe234d65b53ab41eaea5569 (patch) | |
tree | 131fcf6b5c95d787c0b52b6d284b5771c3e82baa /cmd/zfs/zfs_main.c | |
parent | 29b35200a7b3b0b803b69bb18f8435f4b9e66151 (diff) |
Fixed uninitialized variable
This warning was accidentally introduced by commit
b7936d5c2337bc976ac831c1c38de563844c36b. The fix is to
simply initialize the variable to ZFS_DELEG_WHO_UNKNOWN.
cmd/zfs/zfs_main.c:4460:25: warning: 'who_type' 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 444869a47..82a6d569f 100644 --- a/cmd/zfs/zfs_main.c +++ b/cmd/zfs/zfs_main.c @@ -4457,7 +4457,7 @@ construct_fsacl_list(boolean_t un, struct allow_opts *opts, nvlist_t **nvlp) while (curr < end) { const char *who; - zfs_deleg_who_type_t who_type; + zfs_deleg_who_type_t who_type = ZFS_DELEG_WHO_UNKNOWN; char *endch; char *delim = strchr(curr, ','); char errbuf[256]; |