[gnome-software: 1/2] Fix accessing a dereferenced object when searching locally installed snaps
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/2] Fix accessing a dereferenced object when searching locally installed snaps
- Date: Wed, 2 Mar 2022 04:45:36 +0000 (UTC)
commit 553cfd8aa20b54a8940565ec2e2b27b2fb876b16
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Mar 1 15:14:12 2022 +1300
Fix accessing a dereferenced object when searching locally installed snaps
Regression introduced in c7a608a4d9
plugins/snap/gs-plugin-snap.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 7dbdfc992..7c44613e2 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -1152,9 +1152,8 @@ get_snaps_cb (GObject *object,
g_autofree gchar *tracking_channel = NULL;
gboolean need_details = FALSE;
SnapdConfinement confinement = SNAPD_CONFINEMENT_UNKNOWN;
- g_autoptr(SnapdSnap) local_snap = NULL;
+ SnapdSnap *local_snap, *snap;
g_autoptr(SnapdSnap) store_snap = NULL;
- SnapdSnap *snap;
const gchar *developer_name;
g_autofree gchar *description = NULL;
guint64 release_date = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]