Commit 39e7c05f 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.
parent c5a9722d
Pipeline #118997 passed with stage
in 1 minute and 54 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());
......
Markdown is supported
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