summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Liang2021-06-10 15:17:29 +0200
committerPaolo Bonzini2021-06-15 17:17:09 +0200
commit6e1da3d305499d3907f3c7f6638243e2e09b5085 (patch)
tree391689bf2befe15fd77616683b1f267ef2024a52
parentblock/scsi: correctly emulate the VPD block limits page (diff)
downloadqemu-6e1da3d305499d3907f3c7f6638243e2e09b5085.tar.gz
qemu-6e1da3d305499d3907f3c7f6638243e2e09b5085.tar.xz
qemu-6e1da3d305499d3907f3c7f6638243e2e09b5085.zip
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: efd7ab22fb ("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>
-rw-r--r--softmmu/runstate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/softmmu/runstate.c b/softmmu/runstate.c
index 15640572c0..10d9b7365a 100644
--- a/softmmu/runstate.c
+++ b/softmmu/runstate.c
@@ -747,7 +747,7 @@ static void qemu_run_exit_notifiers(void)
void qemu_init_subsystems(void)
{
- Error *err;
+ Error *err = NULL;
os_set_line_buffering();