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

Stephan Bergmann sbergman at redhat.com
Mon Apr 25 15:11:49 UTC 2016


 connectivity/source/commontools/FValue.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 6a0a9870a3b42eca22af064579c8f1b5149c1fa4
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Apr 25 17:11:22 2016 +0200

    -Werror=maybe-uninitialized
    
    Change-Id: Iafa3712d3b600e11b687e7ec5a4ea5a14e87a48b

diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx
index 68b5aa4..f7473f5 100644
--- a/connectivity/source/commontools/FValue.cxx
+++ b/connectivity/source/commontools/FValue.cxx
@@ -1217,8 +1217,9 @@ sal_uInt8 ORowSetValue::getUInt8()    const
                     Any aValue = makeAny();
                     // Cf. "There is no TypeClass_UNSIGNED_BYTE" in makeAny:
                     sal_uInt16 n;
-                    aValue >>= n;
-                    nRet = static_cast<sal_uInt8>(n);
+                    if (aValue >>= n) {
+                        nRet = static_cast<sal_uInt8>(n);
+                    }
                     break;
                 }
         }


More information about the Libreoffice-commits mailing list