aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
authorAlbert Astals <albert.astals@canonical.com>2014-02-28 13:10:02 +0100
committerAlbert Astals <albert.astals@canonical.com>2014-02-28 13:10:02 +0100
commit7b70ef5dae3e27317725942b9eb158adcaed24ee (patch)
tree85ff15cee145e5b07038d4f5e4a83edba349b1c9 /libqmenumodel
parent24aa85ffbd8d84f0cb7cb1e5d66fc4ca1d934f38 (diff)
downloadqmenumodel-7b70ef5dae3e27317725942b9eb158adcaed24ee.tar.gz
qmenumodel-7b70ef5dae3e27317725942b9eb158adcaed24ee.tar.bz2
qmenumodel-7b70ef5dae3e27317725942b9eb158adcaed24ee.zip
Fix use of un-initialized memory
Diffstat (limited to 'libqmenumodel')
-rw-r--r--libqmenumodel/src/qstateaction.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libqmenumodel/src/qstateaction.cpp b/libqmenumodel/src/qstateaction.cpp
index 40d70a5..983064a 100644
--- a/libqmenumodel/src/qstateaction.cpp
+++ b/libqmenumodel/src/qstateaction.cpp
@@ -62,9 +62,8 @@ QStateAction::QStateAction(QDBusActionGroup *group, const QString &name)
- bool isValid = m_group->hasAction(name);
- setValid(isValid);
- if (isValid) {
+ m_valid = m_group->hasAction(name);
+ if (m_valid) {
setState(m_group->actionState(name));
}
}