[gnome-software/wip/hughsie/covscan: 23/23] trivial: Fix unlikely but possible segfault in the self tests
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/covscan: 23/23] trivial: Fix unlikely but possible segfault in the self tests
- Date: Wed, 19 Feb 2020 19:03:54 +0000 (UTC)
commit 0ecc2327611506c91161a233219d63d7cc54eaf3
Author: Richard Hughes <richard hughsie com>
Date: Fri Feb 7 13:57:01 2020 +0000
trivial: Fix unlikely but possible segfault in the self tests
Spotted by Coverity.
plugins/fedora-langpacks/gs-self-test.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/plugins/fedora-langpacks/gs-self-test.c b/plugins/fedora-langpacks/gs-self-test.c
index 895b4947..44de89c0 100644
--- a/plugins/fedora-langpacks/gs-self-test.c
+++ b/plugins/fedora-langpacks/gs-self-test.c
@@ -35,6 +35,8 @@ gs_plugins_fedora_langpacks_func (GsPluginLoader *plugin_loader)
"refine-flags", GS_PLUGIN_REFINE_FLAGS_REQUIRE_ICON,
NULL);
list = gs_plugin_loader_job_process (plugin_loader, plugin_job, NULL, &error);
+ g_assert_nonnull (list);
+ g_assert_no_error (error);
/* check if we have just one app in the list */
g_assert_cmpint (gs_app_list_length (list), ==, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]