mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-13 19:50:25 +03:00
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
This commit is contained in:
parent
b83e3e48c9
commit
17897ce2c8
@ -1716,10 +1716,10 @@ zfs_obj_to_path_impl(objset_t *osp, uint64_t obj, sa_handle_t *hdl,
|
|||||||
sa_hdl = hdl;
|
sa_hdl = hdl;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
uint64_t pobj;
|
uint64_t pobj = 0;
|
||||||
char component[MAXNAMELEN + 2];
|
char component[MAXNAMELEN + 2];
|
||||||
size_t complen;
|
size_t complen;
|
||||||
int is_xattrdir;
|
int is_xattrdir = 0;
|
||||||
|
|
||||||
if (prevdb)
|
if (prevdb)
|
||||||
zfs_release_sa_handle(prevhdl, prevdb, FTAG);
|
zfs_release_sa_handle(prevhdl, prevdb, FTAG);
|
||||||
|
Loading…
Reference in New Issue
Block a user