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

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Wed Nov 27 12:16:01 UTC 2019


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

New commits:
commit 1c9816d9adf27dda1e00db57cf91817574dcc93c
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Tue Nov 26 18:45:52 2019 +0100
Commit:     Michael Stahl <michael.stahl at cib.de>
CommitDate: Wed Nov 27 13:14:56 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/83841
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Reviewed-by: Xisco FaulĂ­ <xiscofauli at libreoffice.org>
    (cherry picked from commit a973e58a8e3c848cb7d9f397e688e2a9a6ec8f6e)
    Reviewed-on: https://gerrit.libreoffice.org/83874
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
    Reviewed-by: Michael Stahl <michael.stahl at cib.de>
    Tested-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 e8c2fcda8a69..9101f2f9eeda 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
@@ -271,7 +271,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