Fix pointer comparison

This resolves issue #1

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/3/head
Slávek Banko 6 years ago
parent ac46856010
commit ca3519502d
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