[gnome-calendar] source-discoverer: Fail if SoupUri creation fails
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] source-discoverer: Fail if SoupUri creation fails
- Date: Wed, 15 Jun 2022 14:18:23 +0000 (UTC)
commit 19b520fa2d683d2b10c7bf4bf64a91894c25f590
Author: Reynir Björnsson <reynir reynir dk>
Date: Mon Jun 13 13:53:57 2022 +0200
source-discoverer: Fail if SoupUri creation fails
src/utils/gcal-source-discoverer.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/utils/gcal-source-discoverer.c b/src/utils/gcal-source-discoverer.c
index 15512ce0..c9d3f823 100644
--- a/src/utils/gcal-source-discoverer.c
+++ b/src/utils/gcal-source-discoverer.c
@@ -223,6 +223,8 @@ discover_file_in_thread (DiscovererData *data,
GCAL_ENTRY;
uri = soup_uri_new (data->uri);
+ if (!uri)
+ GCAL_RETURN (NULL);
if (g_strcmp0 (soup_uri_get_scheme (uri), "webcal") == 0)
soup_uri_set_scheme (uri, SOUP_URI_SCHEME_HTTPS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]