[epiphany] Revert "embed-utils: Invert the logic of condition in ephy_embed_utils_address_has_web_scheme"



commit 41e3883b646f0ffed6ca0992123d1db68641b592
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Mon Mar 3 14:58:38 2014 +0100

    Revert "embed-utils: Invert the logic of condition in ephy_embed_utils_address_has_web_scheme"
    
    This reverts commit 8f441f2aa17bb2597753a44bb6d20cba24f71308.

 embed/ephy-embed-utils.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c
index cd39780..30c3085 100644
--- a/embed/ephy-embed-utils.c
+++ b/embed/ephy-embed-utils.c
@@ -121,15 +121,15 @@ ephy_embed_utils_address_has_web_scheme (const char *address)
   if (colonpos < 0)
     return FALSE;
 
-  has_web_scheme = (!g_ascii_strncasecmp (address, "http", colonpos) ||
-                    !g_ascii_strncasecmp (address, "https", colonpos) ||
-                    !g_ascii_strncasecmp (address, "about", colonpos) ||
-                    !g_ascii_strncasecmp (address, "ephy-about", colonpos) ||
-                    !g_ascii_strncasecmp (address, "ftp", colonpos) ||
-                    !g_ascii_strncasecmp (address, "file", colonpos) ||
-                    !g_ascii_strncasecmp (address, "javascript", colonpos) ||
-                    !g_ascii_strncasecmp (address, "data", colonpos) ||
-                    !g_ascii_strncasecmp (address, "gopher", colonpos));
+  has_web_scheme = !(g_ascii_strncasecmp (address, "http", colonpos) &&
+                     g_ascii_strncasecmp (address, "https", colonpos) &&
+                     g_ascii_strncasecmp (address, "ftp", colonpos) &&
+                     g_ascii_strncasecmp (address, "file", colonpos) &&
+                     g_ascii_strncasecmp (address, "javascript", colonpos) &&
+                     g_ascii_strncasecmp (address, "data", colonpos) &&
+                     g_ascii_strncasecmp (address, "about", colonpos) &&
+                     g_ascii_strncasecmp (address, "ephy-about", colonpos) &&
+                     g_ascii_strncasecmp (address, "gopher", colonpos));
 
   return has_web_scheme;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]