From 12fd29dfe5552d2ddcbacce47e242733deec07c7 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Thu, 21 Feb 2013 17:53:33 +0100 Subject: ephy-embed: use g_strcmp0 instead of checking manually for null strings --- embed/ephy-embed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index eef91061b..608a9a047 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -303,7 +303,7 @@ load_changed_cb (WebKitWebView *web_view, const char *uri; uri = webkit_web_view_get_uri (web_view); - ephy_embed_set_overview_mode (embed, uri && strcmp (uri, "ephy-about:overview") == 0); + ephy_embed_set_overview_mode (embed, g_strcmp0 (uri, "ephy-about:overview") == 0); break; } case WEBKIT_LOAD_COMMITTED: -- cgit v1.2.3