diff options
| author | Chen Qun | 2020-02-25 13:47:03 +0100 |
|---|---|---|
| committer | Alex Bennée | 2020-02-25 21:20:23 +0100 |
| commit | 413368611039ce435e74fd0ce1b677ccc08a380e (patch) | |
| tree | 7b988fa1f1e0412b2cc462709835394b7236b477 /include | |
| parent | plugins/core: add missing break in cb_to_tcg_flags (diff) | |
| download | qemu-413368611039ce435e74fd0ce1b677ccc08a380e.tar.gz qemu-413368611039ce435e74fd0ce1b677ccc08a380e.tar.xz qemu-413368611039ce435e74fd0ce1b677ccc08a380e.zip | |
tests/plugin: prevent uninitialized warning
According to the glibc function requirements, we need initialise
the variable. Otherwise there will be compilation warnings:
glib-autocleanups.h:28:3: warning: ‘out’ may be
used uninitialized in this function [-Wmaybe-uninitialized]
g_free (*pp);
^~~~~~~~~~~~
Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20200206093238.203984-1-kuhn.chenqun@huawei.com>
[AJB: uses Thomas's single line allocation]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200225124710.14152-13-alex.bennee@linaro.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
