Fix warning

This commit is contained in:
Marcus Holland-Moritz 2020-11-28 02:30:52 +01:00
parent 9a5623466e
commit 85041dd452

View File

@ -249,7 +249,7 @@ void op_read(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
int err = ENOENT;
try {
assert(fi->fh == ino);
if (fi->fh == ino) {
iovec_read_buf buf;
ssize_t rv = s_fs->readv(ino, buf, size, off);
@ -263,6 +263,9 @@ void op_read(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
}
err = -rv;
} else {
err = EIO;
}
} catch (const dwarfs::error& e) {
std::cerr << "ERROR: " << e.what() << std::endl;
err = e.get_errno();