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

Tor Lillqvist tml at collabora.com
Fri Jan 3 02:41:35 PST 2014


 connectivity/source/drivers/firebird/PreparedStatement.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 51145fa54451a7a068df30af0f7319b25104d1e6
Author: Tor Lillqvist <tml at collabora.com>
Date:   Fri Jan 3 12:32:52 2014 +0200

    WaE: C4701: potentially uninitialized local variable 'aErr' used
    
    Change-Id: I420a103fc62091319ec2d466c037d7c6631dde5d

diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx
index 128f357..7c7b3d3 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.cxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx
@@ -492,7 +492,7 @@ void SAL_CALL OPreparedStatement::setBlob(sal_Int32 nParameterIndex,
 
     // Max segment size is 2^16 == SAL_MAX_UINT16
     sal_uInt64 nDataWritten = 0;
-    ISC_STATUS aErr;
+    ISC_STATUS aErr = 0;
     while (xBlob->length() - nDataWritten > 0)
     {
         sal_uInt64 nDataRemaining = xBlob->length() - nDataWritten;
@@ -592,7 +592,7 @@ void SAL_CALL OPreparedStatement::setBytes(sal_Int32 nParameterIndex,
 
     // Max segment size is 2^16 == SAL_MAX_UINT16
     sal_uInt64 nDataWritten = 0;
-    ISC_STATUS aErr;
+    ISC_STATUS aErr = 0;
     while (xBytes.getLength() - nDataWritten > 0)
     {
         sal_uInt64 nDataRemaining = xBytes.getLength() - nDataWritten;


More information about the Libreoffice-commits mailing list