work around daft warning

John Tytgat
Fri May 18 10:57:00 GMT 2012

In message <>
          Alan Modra <> wrote:

> +	      if (asprintf (&label, "%c%s", leading_char, name))
> +		{ /* Avoid warning */ }

When asprintf() fails, contents of label is undefined, isn't it better
to have label = NULL in the if () body ? Not sure whether the rest of
the code can deal with label being NULL...

John Tytgat, in his comfy chair at home

More information about the Binutils mailing list