Permalink
Browse files

ephy-profile-utils: use == to compare SoupURI schemes

We can just use it as SOUP_URI_SCHEME_HTTPS is an intern static string.
  • Loading branch information...
svillar committed Feb 24, 2012
1 parent 62df9fb commit f50cdfe8f63a38a931caae998c36571564d59f9f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ephy-profile-utils.c
View
@@ -96,7 +96,7 @@ normalize_and_prepare_uri (SoupURI *uri,
/* We normalize https? schemes here so that we use passwords
* we stored in https sites in their http counterparts, and
* vice-versa. */
- if (g_str_equal (uri->scheme, SOUP_URI_SCHEME_HTTPS))
+ if (uri->scheme == SOUP_URI_SCHEME_HTTPS)
soup_uri_set_scheme (uri, SOUP_URI_SCHEME_HTTP);
soup_uri_set_path (uri, "/");

0 comments on commit f50cdfe

Please sign in to comment.