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

New commits:
commit 6a0a9870a3b42eca22af064579c8f1b5149c1fa4
Author: Stephan Bergmann <sberg...@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;
                 }
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to