Skip to content

Commit f909542

Browse files
committed
ZipReader: Fix output when m_zip is null
1 parent 1468dc7 commit f909542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/zipreader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void ZipReader::close()
3636
size_t ZipReader::readFile(const std::string &fileName, void **buf)
3737
{
3838
if (!m_zip) {
39-
buf = nullptr;
39+
*buf = nullptr;
4040
return 0;
4141
}
4242

0 commit comments

Comments
 (0)