qemu-e2k/hw/remote
Zenghui Yu d90226808b multi-process: Initialize variables declared with g_auto*
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 (using
gcc-7.3.0 on CentOS):

../hw/remote/proxy.c: In function 'pci_proxy_dev_realize':
/usr/include/glib-2.0/glib/glib-autocleanups.h:28:3: error: 'name' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   g_free (*pp);
   ^~~~~~~~~~~~
../hw/remote/proxy.c:350:30: note: 'name' was declared here
             g_autofree char *name;
                              ^~~~

Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Reviewed-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Miroslav Rezanina <mrezanin@redhat.com>
Message-id: 20210312112143.1369-1-yuzenghui@huawei.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2021-05-21 15:43:57 +01:00
..
iohub.c Do not include hw/boards.h if it's not really necessary 2021-05-02 17:24:51 +02:00
Kconfig multi-process: setup PCI host bridge for remote device 2021-02-10 09:23:22 +00:00
machine.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
memory.c multi-process: Initialize variables declared with g_auto* 2021-05-21 15:43:57 +01:00
meson.build multi-process: create IOHUB object to handle irq 2021-02-10 09:23:28 +00:00
message.c multi-process: perform device reset in the remote process 2021-02-10 09:23:28 +00:00
mpqemu-link.c multi-process: Avoid logical AND of mutually exclusive tests 2021-05-13 18:15:32 +02:00
proxy-memory-listener.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
proxy.c multi-process: Initialize variables declared with g_auto* 2021-05-21 15:43:57 +01:00
remote-obj.c multi-process: Associate fd of a PCIDevice with its object 2021-02-10 09:23:28 +00:00
trace-events multi-process: define MPQemuMsg format and transmission functions 2021-02-10 09:23:28 +00:00
trace.h multi-process: define MPQemuMsg format and transmission functions 2021-02-10 09:23:28 +00:00