[epiphany] ephy-embed: use g_strcmp0 instead of checking manually for null strings
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-embed: use g_strcmp0 instead of checking manually for null strings
- Date: Fri, 22 Feb 2013 00:44:58 +0000 (UTC)
commit 12fd29dfe5552d2ddcbacce47e242733deec07c7
Author: Xan Lopez <xan igalia com>
Date: Thu Feb 21 17:53:33 2013 +0100
ephy-embed: use g_strcmp0 instead of checking manually for null strings
embed/ephy-embed.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index eef9106..608a9a0 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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]