summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
Diffstat (limited to 'css')
-rw-r--r--css/select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/css/select.c b/css/select.c
index a69c77033..ee0e7dacd 100644
--- a/css/select.c
+++ b/css/select.c
@@ -1637,8 +1637,6 @@ css_error node_is_link(void *pw, void *n, bool *match)
*/
css_error node_is_visited(void *pw, void *node, bool *match)
{
- *match = false;
-
nscss_select_ctx *ctx = pw;
nsurl *url;
nserror error;
@@ -1648,6 +1646,8 @@ css_error node_is_visited(void *pw, void *node, bool *match)
dom_node *n = node;
dom_string *s = NULL;
+ *match = false;
+
exc = dom_node_get_node_name(n, &s);
if ((exc != DOM_NO_ERR) || (s == NULL)) {
return CSS_NOMEM;