diff options
author | Chris Wedgwood <[email protected]> | 2013-01-25 18:19:45 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-01-28 09:10:29 -0800 |
commit | ddc07fa57a2e002822ae30f2e18c5427f4e3eb74 (patch) | |
tree | 9314cefe660b98fdc960201195cc58ae490e9ee2 /module/zfs/zfs_acl.c | |
parent | 6772fb679a4205427a385d174359b2a5826da613 (diff) |
Avoid gcc -Werror=maybe-uninitialized warnings
Explicitly set acl details to zero to silence gcc (zfs_acl_node_read
can't be sure zfs_acl_znode_info will set acl_count and aclsize).
Normally suppressing these warnings by setting this to zero at
declaration time is a bad idea but in this instance it's hard to
avoid and should be fairly safe.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #1244
Diffstat (limited to 'module/zfs/zfs_acl.c')
-rw-r--r-- | module/zfs/zfs_acl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/zfs_acl.c b/module/zfs/zfs_acl.c index db6331ea5..8ab5abe81 100644 --- a/module/zfs/zfs_acl.c +++ b/module/zfs/zfs_acl.c @@ -1056,8 +1056,8 @@ zfs_acl_node_read(znode_t *zp, boolean_t have_lock, zfs_acl_t **aclpp, boolean_t will_modify) { zfs_acl_t *aclp; - int aclsize; - int acl_count; + int aclsize = 0; + int acl_count = 0; zfs_acl_node_t *aclnode; zfs_acl_phys_t znode_acl; int version; |