[epiphany] ephy-profile-utils: use == to compare SoupURI schemes
- From: Sergio Villar Senin <svillar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-profile-utils: use == to compare SoupURI schemes
- Date: Fri, 24 Feb 2012 12:44:58 +0000 (UTC)
commit f50cdfe8f63a38a931caae998c36571564d59f9f
Author: Sergio Villar Senin <svillar igalia com>
Date: Fri Feb 24 13:41:57 2012 +0100
ephy-profile-utils: use == to compare SoupURI schemes
We can just use it as SOUP_URI_SCHEME_HTTPS is an intern static string.
lib/ephy-profile-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/ephy-profile-utils.c b/lib/ephy-profile-utils.c
index 4b923ba..fe66b3b 100644
--- a/lib/ephy-profile-utils.c
+++ b/lib/ephy-profile-utils.c
@@ -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, "/");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]