r13648 jmb - /trunk/netsurf/css/select.c

netsurf at semichrome.net netsurf at semichrome.net
Sun Mar 25 08:59:05 BST 2012


Author: jmb
Date: Sun Mar 25 02:59:05 2012
New Revision: 13648

URL: http://source.netsurf-browser.org?rev=13648&view=rev
Log:
Ensure parent is NULL if there is no parent

Modified:
    trunk/netsurf/css/select.c

Modified: trunk/netsurf/css/select.c
URL: http://source.netsurf-browser.org/trunk/netsurf/css/select.c?rev=13648&r1=13647&r2=13648&view=diff
==============================================================================
--- trunk/netsurf/css/select.c (original)
+++ trunk/netsurf/css/select.c Sun Mar 25 02:59:05 2012
@@ -814,6 +814,8 @@
 	dom_node *n = node;
 	dom_node *p;
 	dom_exception err;
+
+	*parent = NULL;
 
 	/* Find parent element */
 	err = dom_node_get_parent_node(n, &n);




More information about the netsurf-commits mailing list