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 18:42:09 +0000
commitc71a8c12547968a456a194bc3500e0022c8cb388 (patch)
treee4ede1154af4c7578da7bd91679dcdc30591c817
parent8cf0a54602f9489f04da12cadc9de7a714e56771 (diff)
downloadyelp-c71a8c12547968a456a194bc3500e0022c8cb388.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