[Libreoffice-commits] online.git: kit/ChildSession.cpp

Andras Timar (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 4 06:56:07 UTC 2020


 kit/ChildSession.cpp |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 945838ee5067d9f94748a0e2e7c0d2bbdabd983d
Author:     Andras Timar <andras.timar at collabora.com>
AuthorDate: Thu Jun 4 08:54:19 2020 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Thu Jun 4 08:55:12 2020 +0200

    fix bogus -Werror=maybe-uninitialized
    
    Change-Id: Id8662bfdebe50ec87dd634f4564fab12c32ebdc1

diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp
index ac1d1ec4f..d9bf41631 100644
--- a/kit/ChildSession.cpp
+++ b/kit/ChildSession.cpp
@@ -1314,9 +1314,9 @@ bool ChildSession::gestureEvent(const char* /*buffer*/, int /*length*/,
     bool success = true;
 
     unsigned int windowID = 0;
-    int x;
-    int y;
-    int offset;
+    int x = 0;
+    int y = 0;
+    int offset = 0;
     std::string type;
 
     if (tokens.size() < 6)


More information about the Libreoffice-commits mailing list