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
Erik Larsson 2015-03-13 09:02:38 +01:00
parent 82bb43eed3
commit 36f4957587
1 changed files with 1 additions and 2 deletions

View File

@ -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