summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@redhat.com>2022-07-22 08:32:14 -0500
committerRichard Hughes <richard@hughsie.com>2022-07-22 14:41:40 +0100
commit323f4ea96f95d1522b951963a5d91e5320d38274 (patch)
tree5768e90cbc341ed18550194e02ba3be67a1a64bd
parent674490bd54ff206f213ca4547db7fdb591a0fb3d (diff)
downloadappstream-glib-323f4ea96f95d1522b951963a5d91e5320d38274.tar.gz
Initialize proxy resolver in appstream-validate
Oops, trying to use it would just result in criticals. Fixes #449
-rw-r--r--libappstream-glib/as-app-validate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libappstream-glib/as-app-validate.c b/libappstream-glib/as-app-validate.c
index f18d245..85f4e45 100644
--- a/libappstream-glib/as-app-validate.c
+++ b/libappstream-glib/as-app-validate.c
@@ -1330,6 +1330,7 @@ as_app_validate (AsApp *app, guint32 flags, GError **error)
helper->probs = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);
helper->screenshot_urls = g_ptr_array_new_with_free_func (g_free);
helper->flags = flags;
+ helper->proxy_resolver = g_proxy_resolver_get_default ();
if (!as_app_validate_setup_networking (helper, error))
return NULL;