[Libreoffice-commits] core.git: cui/source

Tor Lillqvist tml at collabora.com
Fri Sep 27 01:59:51 PDT 2013


 cui/source/options/optaboutconfig.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6981fd4e9ffafaed2853932e3ed41a6ec7a284b5
Author: Tor Lillqvist <tml at collabora.com>
Date:   Fri Sep 27 10:59:06 2013 +0200

    WaE: variable 'bValid' is used uninitialized whenever 'if' condition is false
    
    Change-Id: I3357ff4af0ac43950db94d1a009faeb4fb281dba

diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx
index 4cba4d7..f78303f 100644
--- a/cui/source/options/optaboutconfig.cxx
+++ b/cui/source/options/optaboutconfig.cxx
@@ -62,7 +62,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeCuiCustomMultilineEdit(Wind
 
 void CuiCustomMultilineEdit::KeyInput( const KeyEvent& rKeyEvent )
 {
-    bool bValid;
+    bool bValid = false;
     bool bNonSpace = rKeyEvent.GetKeyCode().GetCode() != KEY_SPACE;
     if( bNumericOnly && bNonSpace )
     {


More information about the Libreoffice-commits mailing list