summaryrefslogtreecommitdiffstats
path: root/src/printsupport
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-03-06 01:29:28 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-03-06 18:37:06 +0000
commit5e68c84ca6d619f51292aab4ee6dc6c6ed69438a (patch)
treef8b683d4f4f2635c20b690461fc0ebe36f69eb54 /src/printsupport
parenta90485dd01bd6c067bf977cb30604032352da6be (diff)
QPlatformPrintDevice: fix uninit'ed member variable
Found by UBSan: src/printsupport/kernel/qplatformprintdevice.cpp:370:10: runtime error: load of value 196, which is not a valid value for type 'bool' Change-Id: I184e5bf5e4917eeb492b54fe87950bcf03421887 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/printsupport')
-rw-r--r--src/printsupport/kernel/qplatformprintdevice.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/printsupport/kernel/qplatformprintdevice.cpp b/src/printsupport/kernel/qplatformprintdevice.cpp
index 6385f58aa1..802a12603a 100644
--- a/src/printsupport/kernel/qplatformprintdevice.cpp
+++ b/src/printsupport/kernel/qplatformprintdevice.cpp
@@ -53,6 +53,9 @@ QPlatformPrintDevice::QPlatformPrintDevice()
m_haveOutputBins(false),
m_haveDuplexModes(false),
m_haveColorModes(false)
+#ifndef QT_NO_MIMETYPES
+ , m_haveMimeTypes(false)
+#endif
{
}
@@ -68,6 +71,9 @@ QPlatformPrintDevice::QPlatformPrintDevice(const QString &id)
m_haveOutputBins(false),
m_haveDuplexModes(false),
m_haveColorModes(false)
+#ifndef QT_NO_MIMETYPES
+ , m_haveMimeTypes(false)
+#endif
{
}