fixed problem causing segfault on validation error condition (reported on
* xmlregexp.c: fixed problem causing segfault on validation error
condition (reported on mailing list)
diff --git a/xmlregexp.c b/xmlregexp.c
index f42b38c..784feaf 100644
--- a/xmlregexp.c
+++ b/xmlregexp.c
@@ -2816,7 +2816,8 @@
}
}
if (ret == 1) {
- if ((exec->callback != NULL) && (atom != NULL)) {
+ if ((exec->callback != NULL) && (atom != NULL) &&
+ (data != NULL)) {
exec->callback(exec->data, atom->valuep,
atom->data, data);
}