mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
plugins: fix -Werror=maybe-uninitialized false-positive
../plugins/loader.c:405:15: error: ‘ctx’ may be used uninitialized [-Werror=maybe-uninitialized] Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-ID: <20240328102052.3499331-15-marcandre.lureau@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
e193d4bdb8
commit
c65288de4d
@ -390,7 +390,7 @@ void plugin_reset_uninstall(qemu_plugin_id_t id,
|
||||
bool reset)
|
||||
{
|
||||
struct qemu_plugin_reset_data *data;
|
||||
struct qemu_plugin_ctx *ctx;
|
||||
struct qemu_plugin_ctx *ctx = NULL;
|
||||
|
||||
WITH_QEMU_LOCK_GUARD(&plugin.lock) {
|
||||
ctx = plugin_id_to_ctx_locked(id);
|
||||
|
Loading…
Reference in New Issue
Block a user