From d3463d9e2ab997cb53e197aa08eee479d5ba2c56 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 25 Mar 2012 07:59:05 +0000 Subject: Ensure parent is NULL if there is no parent svn path=/trunk/netsurf/; revision=13648 --- css/select.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'css') diff --git a/css/select.c b/css/select.c index 9d6edc308..aaebc906d 100644 --- a/css/select.c +++ b/css/select.c @@ -815,6 +815,8 @@ css_error parent_node(void *pw, void *node, void **parent) dom_node *p; dom_exception err; + *parent = NULL; + /* Find parent element */ err = dom_node_get_parent_node(n, &n); if (err != DOM_NO_ERR) -- cgit v1.2.3