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

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Wed Nov 27 04:28:02 UTC 2019


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

New commits:
commit ef80d47c38a7adeae3b4122ecfae8fd99773bff7
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Tue Nov 26 18:45:52 2019 +0100
Commit:     Lionel Elie Mamane <lionel at mamane.lu>
CommitDate: Wed Nov 27 05:27:04 2019 +0100

    tdf#128698: MySQL/MariaDB direct Connection: time-values not written to table
    
    Initialize MYSQL_TIME my_time structure before using it
    Same idea as part of f4393330b2bbebc7290b72ad2f5b81d26244ac64
    but by using modern initialization instead of memset
    
    Change-Id: Ife9741604e7bf8f0fbe4671ddb16a56204f4fa43
    Reviewed-on: https://gerrit.libreoffice.org/83811
    (cherry picked from commit 97ad402d58b52a1f2636905137c21298531c2935)
    Reviewed-on: https://gerrit.libreoffice.org/83840
    Tested-by: Jenkins
    Reviewed-by: Lionel Elie Mamane <lionel at mamane.lu>

diff --git a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
index 902a1d93edb0..7cdd19667f30 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
@@ -267,7 +267,7 @@ void SAL_CALL OPreparedStatement::setTime(sal_Int32 parameter, const Time& aVal)
     checkDisposed(OPreparedStatement::rBHelper.bDisposed);
     checkParameterIndex(parameter);
 
-    MYSQL_TIME my_time;
+    MYSQL_TIME my_time = {};
 
     my_time.hour = aVal.Hours;
     my_time.minute = aVal.Minutes;


More information about the Libreoffice-commits mailing list