Fix pointer comparison

This resolves issue #1

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit ca3519502d)
r14.0.x
Slávek Banko 6 years ago
parent 4584ab1e9b
commit b7b0e8f808
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1266,7 +1266,7 @@ bool Ftp::ftpCloseCommand()
kdDebug(7102) << "ftpCloseCommand: reading command result" << endl; kdDebug(7102) << "ftpCloseCommand: reading command result" << endl;
m_bBusy = false; m_bBusy = false;
if(ftpResponse(-1) <= 0 || (m_iRespType != 2) ) if(!ftpResponse(-1) || (m_iRespType != 2) )
{ {
kdDebug(7102) << "ftpCloseCommand: no transfer complete message" << endl; kdDebug(7102) << "ftpCloseCommand: no transfer complete message" << endl;
return false; return false;

Loading…
Cancel
Save