Commit 1b3ef4a6 authored by Fabian Vogt's avatar Fabian Vogt
Browse files

sftp: Don't compare size_t against -1

readChunks returns an int, use const auto instead of size_t to be able to
compare against -1.

(cherry picked from commit 39e7c05f)
parent f3ad370f
Pipeline #119000 passed with stage
in 2 minutes and 8 seconds
......@@ -1308,7 +1308,7 @@ Result SFTPInternal::sftpGet(const QUrl &url, KIO::fileoffset_t offset, int fd)
}
filedata.clear();
const size_t bytesread = request.readChunks(filedata);
const auto bytesread = request.readChunks(filedata);
// Read pending get requests
if (bytesread == -1) {
return Result::fail(KIO::ERR_CANNOT_READ, url.toString());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment