ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #01477
[Branch ~dbusmenu-team/dbusmenu/trunk] Rev 99: Reject text nodes to avoid erros.
Merge authors:
Ted Gould (ted)
Related merge proposals:
https://code.launchpad.net/~ted/dbusmenu/reject-text-nodes/+merge/24955
proposed by: Ted Gould (ted)
review: Approve - Cody Russell (bratsche)
------------------------------------------------------------
revno: 99 [merge]
committer: Ted Gould <ted@xxxxxxxx>
branch nick: trunk
timestamp: Mon 2010-05-10 17:00:04 +0200
message:
Reject text nodes to avoid erros.
modified:
libdbusmenu-glib/client.c
--
lp:dbusmenu
https://code.launchpad.net/~dbusmenu-team/dbusmenu/trunk
Your team ayatana-commits is subscribed to branch lp:dbusmenu.
To unsubscribe from this branch go to https://code.launchpad.net/~dbusmenu-team/dbusmenu/trunk/+edit-subscription
=== modified file 'libdbusmenu-glib/client.c'
--- libdbusmenu-glib/client.c 2010-04-16 17:21:02 +0000
+++ libdbusmenu-glib/client.c 2010-05-09 15:12:51 +0000
@@ -533,6 +533,9 @@
static gint
parse_node_get_id (xmlNodePtr node)
{
+ if (node->type != XML_ELEMENT_NODE) {
+ return -1;
+ }
if (g_strcmp0((gchar *)node->name, "menu") != 0) {
/* This kills some nodes early */
g_warning("XML Node is not 'menu' it is '%s'", node->name);