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

Caolán McNamara caolanm at redhat.com
Tue Mar 1 10:45:47 UTC 2016


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

New commits:
commit d7e1e8da8b1a5158c5a89c7016e05588b0461999
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Mar 1 10:45:06 2016 +0000

    coverity#1352212 Unchecked return value
    
    Change-Id: I75a6853a6708585201dbc4722e7a19cd568a48f7

diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx
index ac2778f..4ecb9b7 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.cxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx
@@ -100,10 +100,11 @@ void OPreparedStatement::ensurePrepared()
         m_pInSqlda = static_cast<XSQLDA*>(calloc(1, XSQLDA_LENGTH(nItems)));
         m_pInSqlda->version = SQLDA_VERSION1;
         m_pInSqlda->sqln = nItems;
-        isc_dsql_describe_bind(m_statusVector,
-                               &m_aStatementHandle,
-                               1,
-                               m_pInSqlda);
+        aErr = isc_dsql_describe_bind(m_statusVector,
+                                      &m_aStatementHandle,
+                                      1,
+                                      m_pInSqlda);
+        SAL_WARN_IF(aErr, "connectivity.firebird", "isc_dsql_describe_bind failed");
     }
 
     if (!aErr)


More information about the Libreoffice-commits mailing list