aboutsummaryrefslogtreecommitdiff
path: root/module/zfs/zfs_znode.c
diff options
context:
space:
mode:
authorBrian Behlendorf <behlendorf1@llnl.gov>2013-09-13 20:10:36 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2013-09-13 20:31:24 +0000
commit17897ce2c88476f6fb7413f05e183694cb7482ef (patch)
tree330a7eeed219a3747aad843964d217d4b73b04b9 /module/zfs/zfs_znode.c
parentb83e3e48c9b183a80dd00eb6c7431a1cbc7d89c9 (diff)
downloadsrc-17897ce2c88476f6fb7413f05e183694cb7482ef.tar.gz
src-17897ce2c88476f6fb7413f05e183694cb7482ef.zip
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 <behlendorf1@llnl.gov> Closes #1716
Diffstat (limited to 'module/zfs/zfs_znode.c')
-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 aaf17e18f495..fae32ad9a098 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);