On Thu, Jun 10, 2021 at 09:17:29PM +0800, Peng Liang wrote: > Based on the description of error_setg(), the local variable err in > qemu_init_subsystems() should be initialized to NULL. > > Fix: efd7ab22fb "vl: extract qemu_init_subsystems" > Signed-off-by: Peng Liang <liangpen...@huawei.com> > --- > The patch is generated by the following coccinelle script (thanks to > Markus): > @ r @ > identifier id; > @@ > ( > static Error *id; > | > Error *id > + = NULL > ; > ) > And exclude the modifications in softmmu/vl.c (which has fixed by > Zhenzhong Duan already) and util/error.c (which are unnecessary). > > softmmu/runstate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|