diff options
author | Shaun McCance <shaunm@gnome.org> | 2020-10-03 11:45:40 -0400 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2020-10-03 11:45:40 -0400 |
commit | 8bae61f428b8e220c876ef349a719f42b0cc7fba (patch) | |
tree | a066dbf1020ebfd7d8cb6f30c601764ed5544090 | |
parent | 76f1a8c44f595e80bf1f76b248140762ab4c94a5 (diff) | |
download | yelp-issue158.tar.gz |
Check against SOUP_URI_SCHEME_FILE instead of str comparisonissue158
-rw-r--r-- | libyelp/yelp-uri-builder.c | 2 |
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 |