RFC: Handling realloc(0)

Nick Clifton nickc@redhat.com
Tue May 4 11:17:42 GMT 2021


Hi Hannes,

>> +  if (size == 0)
>> +    size = 1;
>>      ret = realloc (ptr, sz);
> 
> I think you meant to use sz here instead of size.

Doh!  Yes, thanks for the catch.

Cheers
   Nick




More information about the Binutils mailing list