summaryrefslogtreecommitdiff
path: root/rsc/source/tools
diff options
context:
space:
mode:
Diffstat (limited to 'rsc/source/tools')
-rw-r--r--rsc/source/tools/rsctools.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/rsc/source/tools/rsctools.cxx b/rsc/source/tools/rsctools.cxx
index 02507cc030e0..a9dfb1bf6c6a 100644
--- a/rsc/source/tools/rsctools.cxx
+++ b/rsc/source/tools/rsctools.cxx
@@ -377,7 +377,10 @@ sal_uInt32 RscWriteRc :: IncSize( sal_uInt32 nSize )
char * RscWriteRc :: GetPointer( sal_uInt32 nSize )
{
if( !pMem )
+ {
pMem = (char *)rtl_allocateMemory( nLen );
+ memset( pMem, 0, nLen );
+ }
return( pMem + nSize );
}