summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-10-24 17:42:07 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-10-25 02:27:39 +0200
commit449ff656f92846237d68ae3f27b3ab2aedd62da8 (patch)
tree6202eec25e213019b14605802978aa86b752f12f /net-libs/libaccounts-glib/files/libaccounts-glib-1.25-assert-failure.patch
parentdev-java/openjdk-jre-bin: bump to 11.0.9_p11 (diff)
downloadgentoo-449ff656f92846237d68ae3f27b3ab2aedd62da8.tar.gz
gentoo-449ff656f92846237d68ae3f27b3ab2aedd62da8.tar.bz2
gentoo-449ff656f92846237d68ae3f27b3ab2aedd62da8.zip
net-libs/libaccounts-glib: python3_9, fix assert failure
Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'net-libs/libaccounts-glib/files/libaccounts-glib-1.25-assert-failure.patch')
-rw-r--r--net-libs/libaccounts-glib/files/libaccounts-glib-1.25-assert-failure.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/net-libs/libaccounts-glib/files/libaccounts-glib-1.25-assert-failure.patch b/net-libs/libaccounts-glib/files/libaccounts-glib-1.25-assert-failure.patch
new file mode 100644
index 00000000000..f35aee5c6a8
--- /dev/null
+++ b/net-libs/libaccounts-glib/files/libaccounts-glib-1.25-assert-failure.patch
@@ -0,0 +1,26 @@
+From 29bdc47abe11d3bfcec7a35ed83475eba04bfdaa Mon Sep 17 00:00:00 2001
+From: Pekka Vuorela <pekka.vuorela@jolla.com>
+Date: Tue, 7 Jul 2020 12:51:50 +0300
+Subject: [PATCH] Avoid assert failure on ag_provider_get_tags
+
+---
+ libaccounts-glib/ag-provider.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/libaccounts-glib/ag-provider.c b/libaccounts-glib/ag-provider.c
+index 93d1541..8a79616 100644
+--- a/libaccounts-glib/ag-provider.c
++++ b/libaccounts-glib/ag-provider.c
+@@ -464,6 +464,9 @@ GList *ag_provider_get_tags (AgProvider *provider)
+ {
+ g_return_val_if_fail (provider != NULL, NULL);
+
++ if (G_UNLIKELY (provider->tags == NULL))
++ return NULL;
++
+ return g_hash_table_get_keys (provider->tags);
+ }
+
+--
+GitLab
+