[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - connectivity/source

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Mon Dec 2 11:32:08 UTC 2019


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

New commits:
commit af32f3147d2dd6894c9ad321fab269774b0037b0
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Tue Nov 26 23:37:23 2019 +0100
Commit:     Michael Stahl <michael.stahl at cib.de>
CommitDate: Mon Dec 2 12:31:26 2019 +0100

    In the same way as 97ad402d58b52a1f2636905137c21298531c2935
    
    OPreparedStatement::setDate works but let's use good habits.
    
    Change-Id: Ic410910ea138cc23d7f33bccd96812efd041732c
    Reviewed-on: https://gerrit.libreoffice.org/83842
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    (cherry picked from commit 4895e01dee323d97d5573a6a2ff4696c3e7bcd25)
    Reviewed-on: https://gerrit.libreoffice.org/84135
    Reviewed-by: Michael Stahl <michael.stahl at cib.de>

diff --git a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
index 9101f2f9eeda..c8ed7ccf1668 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
@@ -253,7 +253,7 @@ void SAL_CALL OPreparedStatement::setDate(sal_Int32 parameter, const Date& aData
     checkDisposed(OPreparedStatement::rBHelper.bDisposed);
     checkParameterIndex(parameter);
 
-    MYSQL_TIME my_time;
+    MYSQL_TIME my_time = {};
 
     my_time.year = aData.Year;
     my_time.month = aData.Month;


More information about the Libreoffice-commits mailing list