diff options
author | Xan Lopez <xan@igalia.com> | 2012-01-20 20:06:20 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-01-20 20:06:20 +0800 |
commit | edc2139a00f57a18ccd8ad8ae82fc49a3f08da0e (patch) | |
tree | 28a88eac709edbcbfa5f9e5568e91a1537a8dc96 | |
parent | 4d8bef5ee9efcf82a133afed7635240216afbf69 (diff) | |
download | gsoc2013-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
-rw-r--r-- | 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 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); } |