mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 12:12:35 +03:00
C89
This commit is contained in:
parent
27b7b20108
commit
850432f990
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user