aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget/diveeventitem.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-03-05 08:30:23 +0100
committerGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-03-05 08:30:23 +0100
commit3fcac9022cca520209352c498320809bfb66e2c9 (patch)
tree63935a0c4d6d48b274236739ddc652347f422f52 /profile-widget/diveeventitem.cpp
parent9655417ad3c55752ec1d53ec3b88c7436585d921 (diff)
downloadsubsurface-3fcac9022cca520209352c498320809bfb66e2c9.tar.gz
profile: initialize DiveEventItem::dive to null
To simplify debugging, this should be initialized. Found by coverity. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/diveeventitem.cpp')
-rw-r--r--profile-widget/diveeventitem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/profile-widget/diveeventitem.cpp b/profile-widget/diveeventitem.cpp
index cfbba4c8a..9cb28e168 100644
--- a/profile-widget/diveeventitem.cpp
+++ b/profile-widget/diveeventitem.cpp
@@ -18,7 +18,8 @@ DiveEventItem::DiveEventItem(QGraphicsItem *parent) : DivePixmapItem(parent),
vAxis(NULL),
hAxis(NULL),
dataModel(NULL),
- internalEvent(NULL)
+ internalEvent(NULL),
+ dive(NULL)
{
setFlag(ItemIgnoresTransformations);
}