runstate: Initialize Error * to NULL
Based on the description of error_setg(), the local variable err in qemu_init_subsystems() should be initialized to NULL. Fixes:stable-6.0efd7ab22fb
("vl: extract qemu_init_subsystems") Cc: qemu-stable@nongnu.org Signed-off-by: Peng Liang <liangpeng10@huawei.com> Message-Id: <20210610131729.3906565-1-liangpeng10@huawei.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> (cherry picked from commit6e1da3d305
) Signed-off-by: Michael Roth <michael.roth@amd.com>
parent
b6f5c02f5f
commit
d1000ee07b
|
@ -746,7 +746,7 @@ static void qemu_run_exit_notifiers(void)
|
|||
|
||||
void qemu_init_subsystems(void)
|
||||
{
|
||||
Error *err;
|
||||
Error *err = NULL;
|
||||
|
||||
os_set_line_buffering();
|
||||
|
||||
|
|
Loading…
Reference in New Issue