Check absent 'version' in toplevel 'xbel' element
Albeit required, in pracise the 'version' value may be missing.
This commit is contained in:
parent
8c6a8abe5f
commit
93b0b9029b
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ katze_array_from_xmlDocPtr (KatzeArray* array,
|
||||||
gchar* value;
|
gchar* value;
|
||||||
|
|
||||||
value = (gchar*)xmlGetProp (cur, (xmlChar*)"version");
|
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_warning ("XBEL version is not 1.0.");
|
||||||
g_free (value);
|
g_free (value);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue