Skip to content

Commit b432a80

Browse files
authored
Merge pull request #234 from liulanzheng/fix-zfile
zfile: fix iterator check
2 parents c49e58b + 62cb6fe commit b432a80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/overlaybd/zfile/zfile.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@ class CompressionFile : public VirtualReadOnlyFile {
371371
}
372372
m_reader->m_begin_idx = m_reader->m_idx;
373373
}
374-
get_current_block();
374+
if (get_current_block() != 0) {
375+
goto end;
376+
}
375377
return *this;
376378
end:
377379
m_reader->m_idx = m_reader->m_end_idx;

0 commit comments

Comments
 (0)