[yelp/issue158] 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/issue158] Check against SOUP_URI_SCHEME_FILE instead of str comparison
- Date: Sat, 3 Oct 2020 15:46:06 +0000 (UTC)
commit 8bae61f428b8e220c876ef349a719f42b0cc7fba
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]