summaryrefslogtreecommitdiff
path: root/tree23.c
diff options
context:
space:
mode:
authorJames Aylett <james@tartarus.org>2000-12-21 16:59:38 +0000
committerJames Aylett <james@tartarus.org>2000-12-21 16:59:38 +0000
commitc93b0a5afb0ad410fd428816113161079fd0d76c (patch)
tree2bd0f61630539ecbda8bba6f411067d7a9988a3a /tree23.c
parentc60f304fb62395cff28f273f1ec206c0c4df1492 (diff)
downloadhalibut-c93b0a5afb0ad410fd428816113161079fd0d76c.zip
halibut-c93b0a5afb0ad410fd428816113161079fd0d76c.tar.gz
halibut-c93b0a5afb0ad410fd428816113161079fd0d76c.tar.bz2
halibut-c93b0a5afb0ad410fd428816113161079fd0d76c.tar.xz
Initial checkin of xhtml backend.
[originally from svn r828]
Diffstat (limited to 'tree23.c')
-rw-r--r--tree23.c3
1 files changed, 1 insertions, 2 deletions
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]);