]> git.ipfire.org Git - thirdparty/qemu.git/commit
runstate: Initialize Error * to NULL
authorPeng Liang <liangpeng10@huawei.com>
Thu, 10 Jun 2021 13:17:29 +0000 (21:17 +0800)
committerMichael Roth <michael.roth@amd.com>
Thu, 14 Oct 2021 21:01:30 +0000 (16:01 -0500)
commitd1000ee07b02c3a6f87a39b45d1b8c5689a14aa9
tree787e9f1a892216d1cb7a010569c810100ed7c764
parentb6f5c02f5f757e0aec2869b336a3ea11ed5eec7c
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>
(cherry picked from commit 6e1da3d305499d3907f3c7f6638243e2e09b5085)
Signed-off-by: Michael Roth <michael.roth@amd.com>
softmmu/runstate.c