summaryrefslogtreecommitdiffstats
path: root/module/zfs
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2013-09-13 13:10:36 -0700
committerBrian Behlendorf <[email protected]>2013-09-13 13:31:24 -0700
commit17897ce2c88476f6fb7413f05e183694cb7482ef (patch)
tree330a7eeed219a3747aad843964d217d4b73b04b9 /module/zfs
parentb83e3e48c9b183a80dd00eb6c7431a1cbc7d89c9 (diff)
Fix uninitialized variables
When compiling on an ARM device using gcc 4.7.3 several variables in the zfs_obj_to_path_impl() function were flagged as uninitialized. To resolve the warnings explicitly initialize them to zero. Signed-off-by: Brian Behlendorf <[email protected]> Closes #1716
Diffstat (limited to 'module/zfs')
-rw-r--r--module/zfs/zfs_znode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/zfs_znode.c b/module/zfs/zfs_znode.c
index aaf17e18f..fae32ad9a 100644
--- a/module/zfs/zfs_znode.c
+++ b/module/zfs/zfs_znode.c
@@ -1716,10 +1716,10 @@ zfs_obj_to_path_impl(objset_t *osp, uint64_t obj, sa_handle_t *hdl,
sa_hdl = hdl;
for (;;) {
- uint64_t pobj;
+ uint64_t pobj = 0;
char component[MAXNAMELEN + 2];
size_t complen;
- int is_xattrdir;
+ int is_xattrdir = 0;
if (prevdb)
zfs_release_sa_handle(prevhdl, prevdb, FTAG);