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

Andras Timar (via logerrit) logerrit at kemper.freedesktop.org
Thu Aug 6 14:00:58 UTC 2020


 kit/ChildSession.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e857c1212ba6171e0b8c44a3861ea857bbee1753
Author:     Andras Timar <andras.timar at collabora.com>
AuthorDate: Thu Aug 6 16:00:34 2020 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Thu Aug 6 16:00:34 2020 +0200

    fix: error: ‘id’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
    
    Change-Id: Idabda74d64bb7ee00e3323aee6fa114bed1593fd

diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp
index 281360654..7eba3aa19 100644
--- a/kit/ChildSession.cpp
+++ b/kit/ChildSession.cpp
@@ -1242,7 +1242,7 @@ bool ChildSession::insertFile(const char* /*buffer*/, int /*length*/, const Stri
 bool ChildSession::extTextInputEvent(const char* /*buffer*/, int /*length*/,
                                      const StringVector& tokens)
 {
-    int id, type = -1;
+    int id = -1, type = -1;
     std::string text;
     bool error = false;
 


More information about the Libreoffice-commits mailing list