diff --git a/src/printsupport/dialogs/qprintdialog_unix.cpp b/src/printsupport/dialogs/qprintdialog_unix.cpp index 3d6cfa0f3f..6a8aa0541a 100644 --- a/src/printsupport/dialogs/qprintdialog_unix.cpp +++ b/src/printsupport/dialogs/qprintdialog_unix.cpp @@ -154,7 +154,7 @@ private: bool anyAdvancedOptionConflict() const; QPrintDevice *m_currentPrintDevice; - QTextCodec *m_cupsCodec; + QTextCodec *m_cupsCodec = nullptr; QVector m_advancedOptionsCombos; #endif };