summaryrefslogtreecommitdiffstats
path: root/qt-ui/starwidget.cpp
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-11-30 09:18:01 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-30 09:24:59 -0800
commit58d37e02001d7f54baf35b72dd1323b8886153d9 (patch)
treeb6981dc7a391413d8d03f04744ed17f9c0857699 /qt-ui/starwidget.cpp
parent22e0323d6ad28933644cd98743d693c5f23f71a5 (diff)
downloadsubsurface-58d37e02001d7f54baf35b72dd1323b8886153d9.tar.gz
Fix uninitialised variable read
Found by Dr. Memory, run by Lubomir: Error #48: UNINITIALIZED READ: reading register al # 0 StarWidget::mouseReleaseEvent() [qt-ui/starwidget.cpp:29] Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/starwidget.cpp')
-rw-r--r--qt-ui/starwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/starwidget.cpp b/qt-ui/starwidget.cpp
index 30c38808c..12b400124 100644
--- a/qt-ui/starwidget.cpp
+++ b/qt-ui/starwidget.cpp
@@ -63,7 +63,8 @@ void StarWidget::setCurrentStars(int value)
StarWidget::StarWidget(QWidget* parent, Qt::WindowFlags f):
QWidget(parent, f),
- current(0)
+ current(0),
+ readOnly(false)
{
if (!activeStar) {
activeStar = new QPixmap();