summaryrefslogtreecommitdiff
path: root/xmlunicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmlunicode.c')
-rw-r--r--xmlunicode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmlunicode.c b/xmlunicode.c
index 4667636..9ef7b77 100644
--- a/xmlunicode.c
+++ b/xmlunicode.c
@@ -943,6 +943,8 @@ static xmlIntFunc
int low, high, mid, cmp;
xmlUnicodeRange *sptr;
+ if ((tptr == NULL) || (tname == NULL)) return(NULL);
+
low = 0;
high = tptr->numentries - 1;
sptr = tptr->table;