[epiphany] ephy-window: do not include <string.h> just for strcmp



commit edc2139a00f57a18ccd8ad8ae82fc49a3f08da0e
Author: Xan Lopez <xan igalia com>
Date:   Fri Jan 20 13:06:20 2012 +0100

    ephy-window: do not include <string.h> just for strcmp

 src/ephy-window.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 57e4671..a3d7238 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -65,7 +65,6 @@
 #include <gio/gio.h>
 #include <glib/gi18n.h>
 #include <gtk/gtk.h>
-#include <string.h>
 #include <webkit/webkit.h>
 
 #ifdef HAVE_X11_XF86KEYSYM_H
@@ -657,7 +656,7 @@ ephy_window_open_link (EphyLink *link,
 	{
 		ephy_web_view_load_url (ephy_embed_get_web_view (embed), address);
 
-		if (address == NULL || address[0] == '\0' || strcmp (address, "about:blank") == 0)
+		if (address == NULL || address[0] == '\0' || g_str_equal (address, "about:blank"))
 		{
 			ephy_window_activate_location (window);
 		}



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