mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Fix more warnings and #197
This commit is contained in:
+1
-1
@@ -412,7 +412,7 @@ ssize_t CFile::Write(const char *pszBuffer, size_t iBytes) {
|
||||
}
|
||||
|
||||
ssize_t res = write(m_iFD, pszBuffer, iBytes);
|
||||
if (res != iBytes)
|
||||
if (-1 == res)
|
||||
m_bHadError = true;
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user