summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Binderman <dcb314@hotmail.com>2016-08-15 01:50:07 (GMT)
committerChristoph Feck <cfeck@kde.org>2016-08-15 01:50:07 (GMT)
commitc7049eb74086986d7b59dedefc7036ce9cc7440b (patch)
tree4dff96f0021cfa6f4c0a9d65584b5958090baf42
parent78d8682cabe353494ac30a7c47691d7c17bd7e94 (diff)
Fix suspicious condition (assignment + comparison)
BUG: 366763 Reviewed by Christoph Feck
-rw-r--r--sftp/kio_sftp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sftp/kio_sftp.cpp b/sftp/kio_sftp.cpp
index 022b808..f6ec556 100644
--- a/sftp/kio_sftp.cpp
+++ b/sftp/kio_sftp.cpp
@@ -1246,7 +1246,7 @@ sftpProtocol::StatusCode sftpProtocol::sftpGet(const KUrl& url, int& errorCode,
if (fd == -1) {
data(filedata);
- } else if ((errorCode = writeToFile(fd, filedata.constData(), filedata.size()) != 0)) {
+ } else if ((errorCode = writeToFile(fd, filedata.constData(), filedata.size())) != 0) {
return sftpProtocol::ClientError;
}
// increment total bytes read