Re: [PATCH v3 4/6] ppc/spapr: Advertise RTAS error injection call support via FDT property

Nikhil Kumar Singh <[email protected]>
Newsgroups org.nongnu.qemu-devel
Message-ID <[email protected]>

On 20/05/26 15:24, Narayana Murty N wrote:
>   static void spapr_dt_rtas(SpaprMachineState *spapr, void *fdt)
>   {
>       MachineState *ms = MACHINE(spapr);
>       int rtas;
> +    size_t size_tokens = 0;
> +    g_autofree char *errinject_tokens;


Hi Narayana,

It would be safer to initialize `errinject_tokens` to `NULL`:
     g_autofree char *errinject_tokens = NULL;

Thanks
~ Nikhil
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.