mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
Fix an implicit (CFile *) false (this should have been NULL for sure)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1428 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+1
-1
@@ -138,7 +138,7 @@ Csock* CDCCSock::GetSockObj(const CString& sHost, unsigned short uPort) {
|
||||
CFile* CDCCSock::OpenFile(bool bWrite) {
|
||||
if ((m_pFile) || (m_sLocalFile.empty())) {
|
||||
m_pUser->PutModule(m_sModuleName, ((bWrite) ? "DCC <- [" : "DCC -> [") + m_sRemoteNick + "][" + m_sLocalFile + "] - Unable to open file.");
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
m_pFile = new CFile(m_sLocalFile);
|
||||
|
||||
Reference in New Issue
Block a user