summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-11-26 23:37:23 +0100
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2019-12-02 09:14:43 +0100
commitc7832ada6cf7264602064da9a957c03f89732f34 (patch)
tree812a071029f67bd06677fcb89718c53969fb3696 /connectivity
parentResolves: tdf#129119 no SfxViewFrame in startcenter (diff)
downloadcore-c7832ada6cf7264602064da9a957c03f89732f34.tar.gz
core-c7832ada6cf7264602064da9a957c03f89732f34.zip
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> (cherry picked from commit 4895e01dee323d97d5573a6a2ff4696c3e7bcd25) Reviewed-on: https://gerrit.libreoffice.org/84134 Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx2
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;