Blob Blame History Raw
From fba4131c0f03038ec07aec11d7fe2ffea4c14a94 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
Date: Mon, 3 Aug 2015 20:15:18 +0100
Subject: [PATCH 088/398] coverity#1315075 Uninitialized pointer field

Change-Id: I4e933b458ca26b2a92d4953ca6cd6220dd730cf9
(cherry picked from commit 1bc0cd0ee0251d42a6cbe75e5d86de4366f59029)
---
 libreofficekit/source/gtk/tilebuffer.hxx | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/libreofficekit/source/gtk/tilebuffer.hxx b/libreofficekit/source/gtk/tilebuffer.hxx
index dabf72f9ea67..b00724367b8d 100644
--- a/libreofficekit/source/gtk/tilebuffer.hxx
+++ b/libreofficekit/source/gtk/tilebuffer.hxx
@@ -206,7 +206,28 @@ struct LOEvent
 
     /// Constructor to instantiate an object of type `type`.
     LOEvent(int type)
-        : m_nType(type) {}
+        : m_nType(type)
+        , m_pCommand(0)
+        , m_pArguments(0)
+        , m_pPath(0)
+        , m_bEdit(false)
+        , m_nPartMode(0)
+        , m_nPart(0)
+        , m_nKeyEvent(0)
+        , m_nCharCode(0)
+        , m_nKeyCode(0)
+        , m_nPaintTileX(0)
+        , m_nPaintTileY(0)
+        , m_fPaintTileZoom(0)
+        , m_nPostMouseEventType(0)
+        , m_nPostMouseEventX(0)
+        , m_nPostMouseEventY(0)
+        , m_nPostMouseEventCount(0)
+        , m_nSetGraphicSelectionType(0)
+        , m_nSetGraphicSelectionX(0)
+        , m_nSetGraphicSelectionY(0)
+    {
+    }
 };
 
 #endif // INCLUDED_TILEBUFFER_HXX
-- 
2.12.0