aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2009-12-18 01:07:31 +0800
committerXan Lopez <xan@gnome.org>2009-12-18 01:09:56 +0800
commitac2328b73528ca5d3408222920fd8143a6e76eec (patch)
tree9a316dd6922baec866734bb6fde10f2d265f6c2a
parent9e4c8f2592dd9f9063c188db7ca596d68f024909 (diff)
downloadgsoc2013-epiphany-ac2328b73528ca5d3408222920fd8143a6e76eec.tar
gsoc2013-epiphany-ac2328b73528ca5d3408222920fd8143a6e76eec.tar.gz
gsoc2013-epiphany-ac2328b73528ca5d3408222920fd8143a6e76eec.tar.bz2
gsoc2013-epiphany-ac2328b73528ca5d3408222920fd8143a6e76eec.tar.lz
gsoc2013-epiphany-ac2328b73528ca5d3408222920fd8143a6e76eec.tar.xz
gsoc2013-epiphany-ac2328b73528ca5d3408222920fd8143a6e76eec.tar.zst
gsoc2013-epiphany-ac2328b73528ca5d3408222920fd8143a6e76eec.zip
ephy-web-view.c: use NULL-safe str compare function
Fixes crasher in pages with no rel elements.
-rw-r--r--embed/ephy-web-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index d693cf66c..e5b0b48a9 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1230,7 +1230,7 @@ do_hook_into_links (JSContextRef js_context, EphyWebView *web_view)
JSObjectRef obj = JSValueToObject (js_context, link, NULL);
char *rel = js_get_element_attribute (js_context, obj, "rel");
- if (g_str_equal (rel, "alternate")) {
+ if (g_strcmp0 (rel, "alternate") == 0) {
char *type = js_get_element_attribute (js_context, obj, "type");
char *title = js_get_element_attribute (js_context, obj, "title");
char *address = js_get_element_attribute (js_context, obj, "href");