summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/ww8/ww8par.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index ad5f7ef5e3d6..5de49fadf67e 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -5613,8 +5613,7 @@ namespace
rtl_random_destroyPool( aRandomPool );
- sal_uInt16 pStd97Pass[16];
- memset( pStd97Pass, 0, sizeof( pStd97Pass ) );
+ sal_uInt16 pStd97Pass[16] = {};
for( sal_Int32 nChar = 0; nChar < nLen; ++nChar )
pStd97Pass[nChar] = sUniPassword[nChar];
@@ -5644,8 +5643,7 @@ namespace
sal_Int32 nLen = sUniPassword.getLength();
if ( nLen <= 15 )
{
- sal_uInt16 pPassword[16];
- memset( pPassword, 0, sizeof( pPassword ) );
+ sal_uInt16 pPassword[16] = {};
for( sal_Int32 nChar = 0; nChar < nLen; ++nChar )
pPassword[nChar] = sUniPassword[nChar];