fix: gcc false positive warning about cache always being null

This commit is contained in:
Marcus Holland-Moritz 2024-06-02 21:40:28 +02:00
parent dacc932ba3
commit 17c72ea47b

View File

@ -243,7 +243,7 @@ find_file_position(cache_type::inode_type const inode,
upd.add_offset(++chunk_index, chunk_offset);
}
if (ent) {
if (cache) {
ent->update(upd, chunk_index, chunk_offset, *it);
cache->set(inode, ent);
}