aboutsummaryrefslogtreecommitdiffstats
path: root/xmlunicode.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-11-05 14:30:41 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-11-05 14:30:41 +0000
commit0ea9c9fd916136fbb772fc40ab14ed5692342e8d (patch)
tree802b3d3cc19500eaab74bd54fa917d671b185d3a /xmlunicode.c
parent8e725fb4de3cf29de03694e4e34649ec52f15600 (diff)
downloadandroid_external_libxml2-0ea9c9fd916136fbb772fc40ab14ed5692342e8d.tar.gz
android_external_libxml2-0ea9c9fd916136fbb772fc40ab14ed5692342e8d.tar.bz2
android_external_libxml2-0ea9c9fd916136fbb772fc40ab14ed5692342e8d.zip
more coverage one fix Daniel
* gentest.py testapi.c: more coverage * xmlunicode.c: one fix Daniel
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 4667636e..9ef7b779 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;