diff options
author | Chen Qun <kuhn.chenqun@huawei.com> | 2020-11-18 19:56:45 +0800 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2020-11-20 13:34:22 +0100 |
commit | f369797617297e190e2fba3d1b7ba459580f619c (patch) | |
tree | 761f331a0c42c964bf5f961b4f5e79a52ecc0e94 /tests/qtest/npcm7xx_watchdog_timer-test.c | |
parent | 923e931188dcbb72387961d313478b80ffc75231 (diff) |
tests/qtest: variable defined by g_autofree need to be initialized
According to the glib function requirements, we need initialise
the variable. Otherwise there will be compilation warnings:
glib-autocleanups.h:28:3: warning: ‘full_name’ may be
used uninitialized in this function [-Wmaybe-uninitialized]
28 | 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>
Reviewed-by: Havard Skinnemoen <hskinnemoen@google.com>
Message-Id: <20201118115646.2461726-2-kuhn.chenqun@huawei.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/npcm7xx_watchdog_timer-test.c')
0 files changed, 0 insertions, 0 deletions