From c93b0a5afb0ad410fd428816113161079fd0d76c Mon Sep 17 00:00:00 2001 From: James Aylett Date: Thu, 21 Dec 2000 16:59:38 +0000 Subject: Initial checkin of xhtml backend. [originally from svn r828] --- tree23.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tree23.c') diff --git a/tree23.c b/tree23.c index 7089c29..1905fbc 100644 --- a/tree23.c +++ b/tree23.c @@ -195,9 +195,8 @@ void *find23(tree23 *t, void *e, int (*cmp)(void *, void *)) { node23 *n; int c; - if (t->root == NULL) + if (t == NULL || t->root == NULL) return NULL; - n = t->root; while (n) { c = cmp(e, n->elems[0]); -- cgit v1.1