[haiku-commits] Re: haiku: hrev48677 - src/system/libroot/os

  • From: Paweł Dziepak <pdziepak@xxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 14 Jan 2015 14:13:32 +0100

14 sty 2015 13:54 "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx> napisał(a):
>
> Am 14.01.2015 um 13:46 schrieb pulkomandy@xxxxxxxxxxxxx:
>
>> +       if (handle == NULL)
>> +               free(text);
>
>
> Same issue here, text may be NULL.

And C standard is happy with that. Only strdup() is problematic.

> However, unless we now explicitly forbid this (in this case, we would
need to fix our whole codebase), we must prevent GCC to use its builtins,
or change them to follow our own semantics.
>
> Bye,
>    Axel.
>

Other related posts: