lowntfs-3g.c: Fix uninitialized variable warning in ntfs_fuse_getxattr.
The variable 'res' was never initialized if the #ifdef condition '!KERNELPERMS | (POSIXACLS & !KERNELACLS)' evaluated to true and there was an error allocating memory for 'value'.edge.strict_endians
parent
82bb43eed3
commit
36f4957587
|
@ -2982,7 +2982,6 @@ static void ntfs_fuse_getxattr(fuse_req_t req, fuse_ino_t ino, const char *name,
|
|||
set_fuse_error(&res);
|
||||
} else
|
||||
res = -errno;
|
||||
}
|
||||
#else
|
||||
/*
|
||||
* Standard access control has been done by fuse/kernel
|
||||
|
@ -3004,9 +3003,9 @@ static void ntfs_fuse_getxattr(fuse_req_t req, fuse_ino_t ino, const char *name,
|
|||
set_fuse_error(&res);
|
||||
} else
|
||||
res = -errno;
|
||||
#endif
|
||||
} else
|
||||
res = -errno;
|
||||
#endif
|
||||
if (res < 0)
|
||||
fuse_reply_err(req, -res);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue