aboutsummaryrefslogtreecommitdiff
path: root/daemon/EventsXML.cpp
diff options
context:
space:
mode:
authorDrew Richardson <drew.richardson@arm.com>2015-04-28 12:00:00 -0700
committerDrew Richardson <drew.richardson@arm.com>2015-05-05 10:01:23 -0700
commitc2fdcde9f26fff5eebbcc2ab34adb9d4202e0d55 (patch)
tree31e74c051671f4915ebd3b1a05fe35a12aa41426 /daemon/EventsXML.cpp
parentabc3535c0d237bf7968b7092e545f2ff422af954 (diff)
gator: Version 5.21.15.21.1
Signed-off-by: Drew Richardson <drew.richardson@arm.com>
Diffstat (limited to 'daemon/EventsXML.cpp')
-rw-r--r--daemon/EventsXML.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/EventsXML.cpp b/daemon/EventsXML.cpp
index 3fe5ecd..cec08d5 100644
--- a/daemon/EventsXML.cpp
+++ b/daemon/EventsXML.cpp
@@ -138,7 +138,7 @@ mxml_node_t *EventsXML::getTree() {
}
// Handle categories
- for (mxml_node_t *node = mxmlFindElement(append, append, "category", NULL, NULL, MXML_DESCEND),
+ for (mxml_node_t *node = strcmp(mxmlGetElement(append), "category") == 0 ? append : mxmlFindElement(append, append, "category", NULL, NULL, MXML_DESCEND),
*next = mxmlFindElement(node, append, "category", NULL, NULL, MXML_DESCEND);
node != NULL;
node = next, next = mxmlFindElement(node, append, "category", NULL, NULL, MXML_DESCEND)) {