connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a973e58a8e3c848cb7d9f397e688e2a9a6ec8f6e Author: Julien Nabet <[email protected]> AuthorDate: Tue Nov 26 18:45:52 2019 +0100 Commit: Xisco FaulĂ <[email protected]> CommitDate: Wed Nov 27 10:57:09 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 <[email protected]> Reviewed-by: Xisco FaulĂ <[email protected]> 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; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
