Kaydet (Commit) e0b71d9c authored tarafından Andras Timar's avatar Andras Timar Kaydeden (comit) Michael Meeks

stop uninitialized memory leaking into resource files.

Change-Id: I8659426dd4ea0c13c8ed839ef5cfb686e6648042
Reviewed-on: https://gerrit.libreoffice.org/3080Reviewed-by: 's avatarMichael Meeks <michael.meeks@suse.com>
Tested-by: 's avatarMichael Meeks <michael.meeks@suse.com>
üst 2c9c43d0
...@@ -377,7 +377,10 @@ sal_uInt32 RscWriteRc :: IncSize( sal_uInt32 nSize ) ...@@ -377,7 +377,10 @@ sal_uInt32 RscWriteRc :: IncSize( sal_uInt32 nSize )
char * RscWriteRc :: GetPointer( sal_uInt32 nSize ) char * RscWriteRc :: GetPointer( sal_uInt32 nSize )
{ {
if( !pMem ) if( !pMem )
{
pMem = (char *)rtl_allocateMemory( nLen ); pMem = (char *)rtl_allocateMemory( nLen );
memset( pMem, 0, nLen );
}
return( pMem + nSize ); return( pMem + nSize );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment