Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df17454a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix lseek() check"

parents 346e6792 74b8449f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ bool CowReader::ParseOps() {
        }
        auto& current_op = ops_buffer->data()[current_op_num];
        pos = lseek(fd_.get(), GetNextOpOffset(current_op), SEEK_CUR);
        if (pos < 0) {
        if (pos == uint64_t(-1)) {
            PLOG(ERROR) << "lseek next op failed";
            return false;
        }