diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2024-03-28 14:20:47 +0400 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-04-02 16:15:07 +0200 |
commit | c65288de4de0552c15d6119098f0eaeb78ab4702 (patch) | |
tree | 2740448f318078767386bc7b2209caa5f4bb2b84 /plugins | |
parent | e193d4bdb8ba34ef1805228875d4a0153b0b7f27 (diff) | |
download | qemu-c65288de4de0552c15d6119098f0eaeb78ab4702.zip qemu-c65288de4de0552c15d6119098f0eaeb78ab4702.tar.gz qemu-c65288de4de0552c15d6119098f0eaeb78ab4702.tar.bz2 |
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>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/loader.c b/plugins/loader.c index 9768b78..513a429 100644 --- a/plugins/loader.c +++ b/plugins/loader.c @@ -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); |