From 3fcac9022cca520209352c498320809bfb66e2c9 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 5 Mar 2021 08:30:23 +0100 Subject: [PATCH] profile: initialize DiveEventItem::dive to null To simplify debugging, this should be initialized. Found by coverity. Signed-off-by: Berthold Stoeger --- profile-widget/diveeventitem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }