diff options
Diffstat (limited to 'filter/filter-option.c')
-rw-r--r-- | filter/filter-option.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/filter-option.c b/filter/filter-option.c index 90b909d650..e5acdd7bd0 100644 --- a/filter/filter-option.c +++ b/filter/filter-option.c @@ -200,13 +200,13 @@ xml_create (FilterElement *fe, xmlNodePtr node) /* parent implementation */ FILTER_ELEMENT_CLASS (parent_class)->xml_create (fe, node); - n = node->childs; + n = node->children; while (n) { if (!strcmp (n->name, "option")) { char *tmp, *value, *title = NULL, *code = NULL; value = xmlGetProp (n, "value"); - work = n->childs; + work = n->children; while (work) { if (!strcmp (work->name, "title")) { if (!title) { @@ -232,7 +232,7 @@ xml_create (FilterElement *fe, xmlNodePtr node) xmlFree (value); g_free (title); g_free (code); - } else { + } else if (n->type == XML_ELEMENT_NODE) { g_warning ("Unknown xml node within optionlist: %s\n", n->name); } n = n->next; |