+Tue Oct 7 18:16:08 CEST 2008 Daniel Veillard <veillard@redhat.com>
+
+ * libxslt/pattern.c: prevent some unchecked pointer accesses, patch
+ by Jake Goulding
+
Wed Aug 6 20:10:08 HKT 2008 William Brack <wbrack@mmm.com.hk>
* Minor cleanup of "typo" and some compilation warnings:
/*
* recompute the index
*/
- xmlNodePtr siblings = node->parent->children;
xmlNodePtr parent = node->parent;
+ xmlNodePtr siblings = NULL;
+
+ if (parent) siblings = parent->children;
while (siblings != NULL) {
if (siblings->type == XML_ELEMENT_NODE) {
/*
* recompute the index
*/
- xmlNodePtr siblings = node->parent->children;
xmlNodePtr parent = node->parent;
+ xmlNodePtr siblings = NULL;
+
+ if (parent) siblings = parent->children;
while (siblings != NULL) {
if (siblings->type == XML_ELEMENT_NODE) {