diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-10-10 21:14:33 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-10-10 22:22:31 +0200 |
commit | 00ee02ea26a070d630160ef5c51f36ab093a9b53 (patch) | |
tree | a42ba7d036b69795d99837cbc44a16b3e3d43d6c /vcl | |
parent | f67392948d625db9ce115092e4c9bfd301268a25 (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.cxx | 2 |
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) ) |