Re: [PATCH v2] multi-process: Initialize variables declared with g_auto*

2021-03-04 Thread Philippe Mathieu-Daudé
On 3/4/21 3:16 AM, Zenghui Yu wrote: > Quote docs/devel/style.rst (section "Automatic memory deallocation"): > > * Variables declared with g_auto* MUST always be initialized, > otherwise the cleanup function will use uninitialized stack memory > > Initialize @name properly to get rid of the com

Re: [PATCH v2] multi-process: Initialize variables declared with g_auto*

2021-03-04 Thread Philippe Mathieu-Daudé
On 3/4/21 3:16 AM, Zenghui Yu wrote: > Quote docs/devel/style.rst (section "Automatic memory deallocation"): > > * Variables declared with g_auto* MUST always be initialized, > otherwise the cleanup function will use uninitialized stack memory > > Initialize @name properly to get rid of the com

[PATCH v2] multi-process: Initialize variables declared with g_auto*

2021-03-03 Thread Zenghui Yu
Quote docs/devel/style.rst (section "Automatic memory deallocation"): * Variables declared with g_auto* MUST always be initialized, otherwise the cleanup function will use uninitialized stack memory Initialize @name properly to get rid of the compilation error: ../hw/remote/proxy.c: In functio