summaryrefslogtreecommitdiff
path: root/src/houdini_html_u.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/houdini_html_u.c')
-rw-r--r--src/houdini_html_u.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/houdini_html_u.c b/src/houdini_html_u.c
index c8e4b93..51e3565 100644
--- a/src/houdini_html_u.c
+++ b/src/houdini_html_u.c
@@ -30,7 +30,7 @@ S_lookup(int i, unsigned long key)
} else {
int next = key < cmark_entities[i].value ?
cmark_entities[i].less : cmark_entities[i].greater;
- if (next == 0) {
+ if (next == -1) { // leaf node
return NULL;
} else {
return S_lookup(next, key);