From 93b0b9029ba241614d60cf0fead7be0d68a31618 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 2 Jul 2010 23:06:10 +0200 Subject: [PATCH] Check absent 'version' in toplevel 'xbel' element Albeit required, in pracise the 'version' value may be missing. --- midori/midori-array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midori/midori-array.c b/midori/midori-array.c index 5230d586..e3fec8b8 100644 --- a/midori/midori-array.c +++ b/midori/midori-array.c @@ -205,7 +205,7 @@ katze_array_from_xmlDocPtr (KatzeArray* array, gchar* value; value = (gchar*)xmlGetProp (cur, (xmlChar*)"version"); - if (!katze_str_equal (value, "1.0")) + if (!value || !katze_str_equal (value, "1.0")) g_warning ("XBEL version is not 1.0."); g_free (value); -- 2.39.5