diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-11-26 23:37:23 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-11-27 08:42:49 +0100 |
commit | 4895e01dee323d97d5573a6a2ff4696c3e7bcd25 (patch) | |
tree | bd76327feb89908924522b96f9f534a49bcd0d19 /connectivity | |
parent | 3a8a75deea23f725d9b4f80e370d9a1ce913c108 (diff) |
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@yahoo.fr>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |