summaryrefslogtreecommitdiffstats
path: root/src/web-view-schemes/normal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/web-view-schemes/normal.c')
-rw-r--r--src/web-view-schemes/normal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web-view-schemes/normal.c b/src/web-view-schemes/normal.c
index d0db097..16a7361 100644
--- a/src/web-view-schemes/normal.c
+++ b/src/web-view-schemes/normal.c
@@ -43,7 +43,7 @@ match_uri(const gchar *uri)
{
/* This is a catch-all scheme handler, so match any schemes not handled
* by another handler. */
- return !g_str_has_prefix(uri, "view-source:");
+ return !uri || !g_str_has_prefix(uri, "view-source:");
}
static gchar *