summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2020-04-29 17:23:06 -0500
committerMichael Catanzaro <mcatanzaro@gnome.org>2020-04-29 17:26:56 -0500
commit700cec9ae69c0e9ba28d5fdf45b0fd56d6e697ff (patch)
treef39b7d76c1e46cd016444dfb0e5c23d13881110e /lib
parent141169b7466c7cd1dd90a46cfb8887f596c3ca2a (diff)
downloadepiphany-700cec9ae69c0e9ba28d5fdf45b0fd56d6e697ff.tar.gz
Assert webapp is non-NULL where required
ephy_web_application_for_profile_directory() had better not return NULL if called for the current profile directory in app mode. In this case, we should crash as cleanly as possible, with g_assert(). But in other situatitons, it's OK for this function to return NULL. Other callers are already prepared to handle this.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-web-app-utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index 10b30ae20..3d2c66ee5 100644
--- a/lib/ephy-web-app-utils.c
+++ b/lib/ephy-web-app-utils.c
@@ -799,6 +799,8 @@ ephy_web_application_is_uri_allowed (const char *uri)
guint i;
gboolean matched = FALSE;
+ g_assert (webapp);
+
if (g_str_has_prefix (uri, "blob:") || g_str_has_prefix (uri, "data:"))
return TRUE;