]> xenbits.xensource.com Git - qemu-xen.git/commit
runstate: Initialize Error * to NULL
authorPeng Liang <liangpeng10@huawei.com>
Thu, 10 Jun 2021 13:17:29 +0000 (21:17 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Jun 2021 15:17:09 +0000 (17:17 +0200)
commit6e1da3d305499d3907f3c7f6638243e2e09b5085
tree391689bf2befe15fd77616683b1f267ef2024a52
parent06b80795ee25d23e69747b2cb435003c6db2a6ab
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>
softmmu/runstate.c