Kaydet (Commit) 87f9d7da authored tarafından Julien Nabet's avatar Julien Nabet

Fix Variable 'nMode' is reassigned

See http://nabble.documentfoundation.org/Cppcheck-Variable-nMode-is-reassigned-in-fstat-cxx-td4030405.html
Thank you Stephan!

Change-Id: I780d422fe03c4c125cc89fee778d820a20553c1c
üst bd230220
......@@ -108,9 +108,7 @@ sal_uIntPtr FileStat::SetReadOnlyFlag( const DirEntry &rEntry, sal_Bool bRO )
mode_t nMode;
if (bRO)
{
nMode = aBuf.st_mode & ~S_IWUSR;
nMode = aBuf.st_mode & ~S_IWGRP;
nMode = aBuf.st_mode & ~S_IWOTH;
nMode = aBuf.st_mode & ~(S_IWUSR | S_IWGRP | S_IWOTH);
}
else
nMode = aBuf.st_mode | S_IWUSR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment