diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-03-25 09:26:39 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-03-25 09:26:39 +0000 |
commit | 66f4d9a8314c182d9f2311761e9ab5df9d7dfc06 (patch) | |
tree | 971159be0ee11b4a3ee80d768cb774add68ae803 | |
parent | 60e5d80aea10eb378e35501d3ed3e2726d16d835 (diff) | |
download | netsurf-66f4d9a8314c182d9f2311761e9ab5df9d7dfc06.tar.gz netsurf-66f4d9a8314c182d9f2311761e9ab5df9d7dfc06.tar.bz2 |
fix previous commit
svn path=/trunk/netsurf/; revision=13658
-rw-r--r-- | css/select.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/css/select.c b/css/select.c index b08683f98..b87bbfc3d 100644 --- a/css/select.c +++ b/css/select.c @@ -1475,10 +1475,11 @@ css_error node_is_root(void *pw, void *node, bool *match) static int node_count_siblings_check(dom_node *node, bool check_name, - dom_string *check_name) + dom_string *name) { dom_node_type type; int ret = 0; + dom_exception exc; if (node == NULL) return 0; @@ -1489,12 +1490,12 @@ node_count_siblings_check(dom_node *node, } if (check_name) { - dom_string node_name = NULL; + dom_string *node_name = NULL; exc = dom_node_get_node_name(node, &node_name); if ((exc == DOM_NO_ERR) && (node_name != NULL)) { - if (dom_string_caseless_isequal(check_name, + if (dom_string_caseless_isequal(name, node_name)) { ret = 1; } @@ -1524,7 +1525,7 @@ css_error node_count_siblings(void *pw, void *n, bool same_name, { int32_t cnt = 0; dom_exception exc; - dom_string node_name = NULL; + dom_string *node_name = NULL; if (same_name) { dom_node *node = n; |