29 lines
909 B
Diff
29 lines
909 B
Diff
From 73d1c9fd58d2fdf2c2d84e70cce678390679baa9 Mon Sep 17 00:00:00 2001
|
|
From: Milan Crha <mcrha@redhat.com>
|
|
Date: Wed, 16 Feb 2022 15:01:46 +0100
|
|
Subject: [PATCH] PackageKit: Fix a crash on app install
|
|
|
|
The array should be NULL-terminated, thus add the NULL at the end.
|
|
|
|
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1648
|
|
---
|
|
plugins/packagekit/gs-plugin-packagekit.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/plugins/packagekit/gs-plugin-packagekit.c b/plugins/packagekit/gs-plugin-packagekit.c
|
|
index 1ad913af5..56ddb1ccc 100644
|
|
--- a/plugins/packagekit/gs-plugin-packagekit.c
|
|
+++ b/plugins/packagekit/gs-plugin-packagekit.c
|
|
@@ -612,6 +612,8 @@ gs_plugin_app_install (GsPlugin *plugin,
|
|
return FALSE;
|
|
}
|
|
|
|
+ g_ptr_array_add (array_package_ids, NULL);
|
|
+
|
|
gs_app_set_state (app, GS_APP_STATE_INSTALLING);
|
|
|
|
for (i = 0; i < gs_app_list_length (addons); i++) {
|
|
--
|
|
GitLab
|
|
|