Commit e145f279 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix uninitialized memory read when opening the settings

==25792== Conditional jump or move depends on uninitialised value(s)
==25792==    at 0xFC1F7C2: PreferredScreenSelector::preferredScreen() const (dlgpresentation.cpp:215)
==25792==    by 0xFC1F422: PreferredScreenSelector::repopulateList() (dlgpresentation.cpp:163)
==25792==    by 0xFC1F23F: PreferredScreenSelector::PreferredScreenSelector(QWidget*) (dlgpresentation.cpp:151)
==25792==    by 0xFC1EFBB: DlgPresentation::DlgPresentation(QWidget*) (dlgpresentation.cpp:128)
==25792==    by 0xFC15825: PreferencesDialog::PreferencesDialog(QWidget*, KConfigSkeleton*, Okular::EmbedMode) (preferencesdialog.cpp:45)
==25792==    by 0xFC4A522: Okular::Part::slotPreferences() (part.cpp:2834)
parent 2a041d48
Pipeline #114849 passed with stage
in 28 minutes and 23 seconds
......@@ -146,6 +146,7 @@ DlgPresentation::DlgPresentation(QWidget *parent)
PreferredScreenSelector::PreferredScreenSelector(QWidget *parent)
: QComboBox(parent)
, m_disconnectedScreenIndex(-1)
, m_disconnectedScreenNumber(k_noDisconnectedScreenNumber)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment