Kaydet (Commit) 49a89c84 authored tarafından Andras Timar's avatar Andras Timar

stop uninitialized memory leaking into resource files.

Change-Id: I8659426dd4ea0c13c8ed839ef5cfb686e6648042
üst 50bab860
...@@ -268,7 +268,10 @@ sal_uInt32 RscWriteRc :: IncSize( sal_uInt32 nSize ) ...@@ -268,7 +268,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