From: Christian Dywan Date: Fri, 2 Jul 2010 21:06:10 +0000 (+0200) Subject: Check absent 'version' in toplevel 'xbel' element X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93b0b9029ba241614d60cf0fead7be0d68a31618;p=midori Check absent 'version' in toplevel 'xbel' element Albeit required, in pracise the 'version' value may be missing. --- 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);