From 653b9fe3f74649cdf8a364139e236183d24af3ad Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 31 Jan 2011 08:51:00 +0000 Subject: Fix node_count_siblings() to compare the correct node names when necessary svn path=/trunk/libcss/; revision=11562 --- test/select-auto.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/select-auto.c b/test/select-auto.c index 3f43898..e79688e 100644 --- a/test/select-auto.c +++ b/test/select-auto.c @@ -1299,13 +1299,14 @@ css_error node_count_siblings(void *pw, void *n, int32_t cnt = 0; bool match = false; node *node = n; + lwc_string *name = node->name; UNUSED(pw); if (after) { while (node->next != NULL) { if (same_name) { assert(lwc_string_caseless_isequal( - node->name, node->next->name, &match) == + name, node->next->name, &match) == lwc_error_ok); if (match) @@ -1320,7 +1321,7 @@ css_error node_count_siblings(void *pw, void *n, while (node->prev != NULL) { if (same_name) { assert(lwc_string_caseless_isequal( - node->name, node->prev->name, &match) == + name, node->prev->name, &match) == lwc_error_ok); if (match) -- cgit v1.2.1