mirror of
https://github.com/znc/znc.git
synced 2026-05-09 14:54:53 +02:00
Fix a couple of issues pointed out by https://scan.coverity.com/
This commit is contained in:
+1
-2
@@ -472,8 +472,7 @@ void CFile::Close() {
|
||||
void CFile::ClearBuffer() { m_sBuffer.clear(); }
|
||||
|
||||
bool CFile::TryExLock(const CString& sLockFile, int iFlags) {
|
||||
Open(sLockFile, iFlags);
|
||||
return TryExLock();
|
||||
return Open(sLockFile, iFlags) && TryExLock();
|
||||
}
|
||||
|
||||
bool CFile::TryExLock() { return Lock(F_WRLCK, false); }
|
||||
|
||||
Reference in New Issue
Block a user