[fpc-devel] ReallocMem with CMem

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Mar 8 18:28:24 CET 2006


On 8 mrt 2006, at 18:19, Micha Nelissen wrote:

>>> Shouldn't ReallocMem in CMem zero the newly allocated bytes ?
>>
>> No, it is the responsibility of the programmer.
>
> Nope. At least the compiler depends on it being zeroed.

Where? It's a bug if it does.

> The FPC heap
> manager zeroes it, as well.

It shouldn't need to do that.


Jonas



More information about the fpc-devel mailing list