[Xfce4-commits] <midori:master> Check absent 'version' in toplevel 'xbel' element
Christian Dywan
noreply at xfce.org
Fri Jul 2 23:36:02 CEST 2010
Updating branch refs/heads/master
to 93b0b9029ba241614d60cf0fead7be0d68a31618 (commit)
from 8c6a8abe5fd85bfb9217b2bc2f66f48a3841239e (commit)
commit 93b0b9029ba241614d60cf0fead7be0d68a31618
Author: Christian Dywan <christian at twotoasts.de>
Date: Fri Jul 2 23:06:10 2010 +0200
Check absent 'version' in toplevel 'xbel' element
Albeit required, in pracise the 'version' value may be missing.
midori/midori-array.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/midori/midori-array.c b/midori/midori-array.c
index 5230d58..e3fec8b 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);
More information about the Xfce4-commits
mailing list