On 10 June 2011 06:55, pancake <panc...@youterm.com> wrote:
> On 10/06/2011, at 4:26, Connor Lane Smith <c...@lubutu.com> wrote:
>> No, there's no bug here; size is allocated and memset on the next line.
>
> Your gcc sucks. Mine reports the error here. Size is only allocated if the
> or condition applies which is not something to always happen opening the
> doors to use an uninitialized pointer.

It's because gcc doesn't understand that eprintf will never return.
Add something like __attribute__((noreturn)) to eprintf's prototype and
you'll see.

Reply via email to