aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'filter/filter-filter.c')
-rw-r--r--filter/filter-filter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/filter-filter.c b/filter/filter-filter.c
index 84ba7875d5..1b34425188 100644
--- a/filter/filter-filter.c
+++ b/filter/filter-filter.c
@@ -244,7 +244,7 @@ load_set (xmlNodePtr node, FilterFilter *ff, RuleContext *rc)
char *rulename;
FilterPart *part;
- work = node->childs;
+ work = node->children;
while (work) {
if (!strcmp (work->name, "part")) {
rulename = xmlGetProp (work, "name");
@@ -257,7 +257,7 @@ load_set (xmlNodePtr node, FilterFilter *ff, RuleContext *rc)
g_warning ("cannot find rule part '%s'\n", rulename);
}
xmlFree (rulename);
- } else {
+ } else if (work->type == XML_ELEMENT_NODE) {
g_warning ("Unknown xml node in part: %s", work->name);
}
work = work->next;
@@ -275,7 +275,7 @@ xml_decode (FilterRule *fr, xmlNodePtr node, RuleContext *rc)
if (result != 0)
return result;
- work = node->childs;
+ work = node->children;
while (work) {
if (!strcmp (work->name, "actionset")) {
load_set (work, ff, rc);