Commit 0976075b authored by Ronan Abhamon's avatar Ronan Abhamon

fix(FileExtractor): check ptr after open

parent 70f4ee2a
......@@ -35,7 +35,9 @@ static int openMinizipStream (void **stream, const char *filePath) {
*stream = nullptr;
if (!mz_stream_bzip_create(stream))
return MZ_MEM_ERROR;
return mz_stream_bzip_open(stream, filePath, MZ_OPEN_MODE_READ);
Q_CHECK_PTR(*stream);
qInfo() << QStringLiteral("Opening `%1`...").arg(filePath);
return mz_stream_bzip_open(*stream, filePath, MZ_OPEN_MODE_READ);
}
// -----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment