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>
bb10
Marc Mutz 2016-03-06 01:29:28 +01:00
parent a90485dd01
commit 5e68c84ca6
1 changed files with 6 additions and 0 deletions

View File

@ -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
{
}