From c71a8c12547968a456a194bc3500e0022c8cb388 Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Sat, 3 Oct 2020 11:45:40 -0400 Subject: Check against SOUP_URI_SCHEME_FILE instead of str comparison --- libyelp/yelp-uri-builder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1