OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6302209
)
assume device pointer passed to qt_inflateGZipDataFrom() is not null
author
Ivailo Monev
<xakepa10@gmail.com>
Fri, 6 Aug 2021 15:55:49 +0000
(18:55 +0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Fri, 6 Aug 2021 15:55:49 +0000
(18:55 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/svg/qsvgtinydocument.cpp
patch
|
blob
|
history
diff --git
a/src/svg/qsvgtinydocument.cpp
b/src/svg/qsvgtinydocument.cpp
index
ed94cf1
..
62373ac
100644
(file)
--- a/
src/svg/qsvgtinydocument.cpp
+++ b/
src/svg/qsvgtinydocument.cpp
@@
-56,8
+56,7
@@
Q_AUTOTEST_EXPORT QByteArray qt_inflateGZipDataFrom(QIODevice *device)
static QByteArray qt_inflateGZipDataFrom(QIODevice *device)
#endif
{
- if (!device)
- return QByteArray();
+ Q_ASSERT(device);
if (!device->isOpen())
device->open(QIODevice::ReadOnly);