diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c
index e163680..1a97f05 100644
--- a/embed/ephy-embed-utils.c
+++ b/embed/ephy-embed-utils.c
@@ -87,7 +87,7 @@ ephy_embed_utils_address_has_web_scheme (const char *address)
 
 	colonpos = (int)((g_strstr_len (address, 11, ":")) - address);
 
-	if (colonpos < 0) return FALSE;
+	if (colonpos <= 0) return FALSE;
 
 	has_web_scheme = !(g_ascii_strncasecmp (address, "http", colonpos) &&
 			   g_ascii_strncasecmp (address, "https", colonpos) &&
