[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - connectivity/source

Michael Stahl mstahl at redhat.com
Tue Sep 23 07:13:16 PDT 2014


 connectivity/source/drivers/file/FPreparedStatement.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d2cb01bc6902e654f076cb8e8b408becd6314af7
Author: Michael Stahl <mstahl at redhat.com>
Date:   Fri Sep 12 17:59:49 2014 +0200

    STL assert in connectivity::file::OPreparedStatement::checkAndResizeParameters
    
    Change-Id: I48f4ceaf1d01d449eba169534f6512f9aadca886
    (cherry picked from commit 7ce8ba33f38671d7cae8b0e759c38b4a8668488a)
    Reviewed-on: https://gerrit.libreoffice.org/11425
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/connectivity/source/drivers/file/FPreparedStatement.cxx b/connectivity/source/drivers/file/FPreparedStatement.cxx
index d34c526..586de72 100644
--- a/connectivity/source/drivers/file/FPreparedStatement.cxx
+++ b/connectivity/source/drivers/file/FPreparedStatement.cxx
@@ -445,7 +445,7 @@ void OPreparedStatement::checkAndResizeParameters(sal_Int32 parameterIndex)
     {
         sal_Int32 i = m_aParameterRow->get().size();
         (m_aParameterRow->get()).resize(parameterIndex+1);
-        for ( ;i <= parameterIndex+1; ++i )
+        for ( ; i <= parameterIndex; ++i)
         {
             if ( !(m_aParameterRow->get())[i].is() )
                 (m_aParameterRow->get())[i] = new ORowSetValueDecorator;


More information about the Libreoffice-commits mailing list