mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-29 01:39:19 +00:00
fix(FileExtractor): check ptr after open
This commit is contained in:
parent
70f4ee2abf
commit
0976075b05
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue