initializeInflateStream - assert that stream is not null
Coverity is not happy with us testing a pointer (not null) in a couple of places but not in initializeInflateStream. In fact we _always_ test this pointer _before_ calling initializeInflateStream. Anyway, let's make this pre-condition clear by Q_ASSERT()ing it. Change-Id: Ibce99ef6ff1d4e09e3a446a672fa28fc93ab832c Reviewed-by: Edward Welbourne <edward.welbourne@theqtcompany.com> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>bb10
parent
0458224743
commit
3e9ed8ee19
|
|
@ -738,6 +738,8 @@ qint64 QHttpNetworkReplyPrivate::readBody(QAbstractSocket *socket, QByteDataBuff
|
|||
#ifndef QT_NO_COMPRESS
|
||||
int QHttpNetworkReplyPrivate::initializeInflateStream()
|
||||
{
|
||||
Q_ASSERT(inflateStrm);
|
||||
|
||||
inflateStrm->zalloc = Z_NULL;
|
||||
inflateStrm->zfree = Z_NULL;
|
||||
inflateStrm->opaque = Z_NULL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue