summaryrefslogtreecommitdiffstats
path: root/src/zix/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zix/tree.c')
-rw-r--r--src/zix/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zix/tree.c b/src/zix/tree.c
index 1be9227..1189230 100644
--- a/src/zix/tree.c
+++ b/src/zix/tree.c
@@ -461,7 +461,7 @@ ZIX_API
void*
zix_tree_get(ZixTreeIter* ti)
{
- return ti->data;
+ return ti ? ti->data : NULL;
}
ZIX_API