summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-10-10 21:14:33 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-10-10 22:22:31 +0200
commit00ee02ea26a070d630160ef5c51f36ab093a9b53 (patch)
treea42ba7d036b69795d99837cbc44a16b3e3d43d6c /vcl
parentf67392948d625db9ce115092e4c9bfd301268a25 (diff)
Initialize nDXBuffer array (vcl/edit)
Change-Id: I2ed4e43e8bf52d980e850e61769343c6a685e74d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123355 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/edit.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index ece46f6ae3a2..9b9cec918018 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -1191,7 +1191,7 @@ sal_Int32 Edit::ImplGetCharPos( const Point& rWindowPos ) const
sal_Int32 nIndex = EDIT_NOLIMIT;
OUString aText = ImplGetText();
- tools::Long nDXBuffer[256];
+ tools::Long nDXBuffer[256] = {0};
std::unique_ptr<tools::Long[]> pDXBuffer;
tools::Long* pDX = nDXBuffer;
if( o3tl::make_unsigned(2*aText.getLength()) > SAL_N_ELEMENTS(nDXBuffer) )