kioslave: fix file slave runtime warning

prior to cf6ac06d91 the slave was simply
exiting but that is no longer the case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-09-19 20:20:06 +03:00
parent bc8e0c451e
commit 7139774873

View file

@ -507,8 +507,11 @@ void FileProtocol::put(const KUrl &url, int _mode, KIO::JobFlags _flags)
}
}
if (fd != -1) {
return;
}
// falltrough when nothing was opened
}
if (fd == -1) {
// got nothing to write out, so never opened the file