Ensure parent is NULL if there is no parent

svn path=/trunk/netsurf/; revision=13648
This commit is contained in:
John Mark Bell 2012-03-25 07:59:05 +00:00
parent a58de36468
commit d3463d9e2a
1 changed files with 2 additions and 0 deletions

View File

@ -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)