From 17897ce2c88476f6fb7413f05e183694cb7482ef Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 13 Sep 2013 13:10:36 -0700 Subject: [PATCH] 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 Closes #1716 --- module/zfs/zfs_znode.c | 4 ++-- 1 file 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);