[yelp/gnome-3-36: 3/3] Check against SOUP_URI_SCHEME_FILE instead of str comparison
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [yelp/gnome-3-36: 3/3] Check against SOUP_URI_SCHEME_FILE instead of str comparison
- Date: Sat,  3 Oct 2020 20:27:35 +0000 (UTC)
commit 85381b0f60429a4f6df0e5753442199994852563
Author: Shaun McCance <shaunm gnome org>
Date:   Sat Oct 3 11:45:40 2020 -0400
    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
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]