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

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Wed Nov 27 07:44:22 UTC 2019


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

New commits:
commit 4895e01dee323d97d5573a6a2ff4696c3e7bcd25
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Tue Nov 26 23:37:23 2019 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Wed Nov 27 08:42:49 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>

diff --git a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
index 7cdd19667f30..68911564e1ec 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
@@ -249,7 +249,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