summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2020-10-03 11:45:40 -0400
committerShaun McCance <shaunm@gnome.org>2020-10-03 16:27:08 -0400
commit85381b0f60429a4f6df0e5753442199994852563 (patch)
treef247781497c4e9caf6ba60c9b07974dcea021e4e
parent1747e1d5aaff4d4c50c606b074500c81b5bb0955 (diff)
downloadyelp-85381b0f60429a4f6df0e5753442199994852563.tar.gz
Check against SOUP_URI_SCHEME_FILE instead of str comparison
-rw-r--r--libyelp/yelp-uri-builder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libyelp/yelp-uri-builder.c b/libyelp/yelp-uri-builder.c
index 6671c110..7f1829d3 100644
--- a/libyelp/yelp-uri-builder.c
+++ b/libyelp/yelp-uri-builder.c
@@ -32,7 +32,7 @@ build_network_uri (const gchar *uri)
soup_uri = soup_uri_new (uri);
/* Don't mangle URIs for local files */
- if (g_str_equal (soup_uri->scheme, "file"))
+ if (soup_uri->scheme == SOUP_URI_SCHEME_FILE)
return g_strdup (uri);
/* Build the URI that will be passed to WebKit. Relative URIs will be