Skip to content

Commit

Permalink
plugins: fix -Werror=maybe-uninitialized false-positive
Browse files Browse the repository at this point in the history
../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>
  • Loading branch information
elmarco authored and philmd committed Apr 2, 2024
1 parent e193d4b commit c65288d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c65288d

Please sign in to comment.