aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-01-20 20:06:20 +0800
committerXan Lopez <xan@igalia.com>2012-01-20 20:06:20 +0800
commitedc2139a00f57a18ccd8ad8ae82fc49a3f08da0e (patch)
tree28a88eac709edbcbfa5f9e5568e91a1537a8dc96 /src
parent4d8bef5ee9efcf82a133afed7635240216afbf69 (diff)
downloadgsoc2013-epiphany-edc2139a00f57a18ccd8ad8ae82fc49a3f08da0e.tar
gsoc2013-epiphany-edc2139a00f57a18ccd8ad8ae82fc49a3f08da0e.tar.gz
gsoc2013-epiphany-edc2139a00f57a18ccd8ad8ae82fc49a3f08da0e.tar.bz2
gsoc2013-epiphany-edc2139a00f57a18ccd8ad8ae82fc49a3f08da0e.tar.lz
gsoc2013-epiphany-edc2139a00f57a18ccd8ad8ae82fc49a3f08da0e.tar.xz
gsoc2013-epiphany-edc2139a00f57a18ccd8ad8ae82fc49a3f08da0e.tar.zst
gsoc2013-epiphany-edc2139a00f57a18ccd8ad8ae82fc49a3f08da0e.zip
ephy-window: do not include <string.h> just for strcmp
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 57e4671e7..a3d7238e7 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);
}