summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorFran├žois Revol <revol@free.fr>2013-12-07 01:08:52 +0100
committerFran├žois Revol <revol@free.fr>2013-12-07 01:08:52 +0100
commit850432f9900f9e2130f522bf19483c111b49e9e8 (patch)
treefaded3eeaaa2360df390a0be88cd8cb549f939dc /css
parent27b7b20108e6507b13a3ce678ab036f01badd32d (diff)
downloadnetsurf-850432f9900f9e2130f522bf19483c111b49e9e8.tar.gz
netsurf-850432f9900f9e2130f522bf19483c111b49e9e8.tar.bz2
C89
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 40755cb3e..4e82884df 100644
--- a/css/select.c
+++ b/css/select.c
@@ -1711,8 +1711,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;
@@ -1722,6 +1720,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;