summaryrefslogtreecommitdiffstats
path: root/src/strindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strindex.c')
-rw-r--r--src/strindex.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/strindex.c b/src/strindex.c
index 886d261..bd97db5 100644
--- a/src/strindex.c
+++ b/src/strindex.c
@@ -190,8 +190,11 @@ ZIX_API
ZixStatus
zix_strindex_find(ZixStrindex* t, const char* p, char** match)
{
- ZixStrindexNode* n = t->root;
- const char* orig_p = p;
+#ifndef NDEBUG
+ const char* orig_p = p;
+#endif
+
+ ZixStrindexNode* n = t->root;
size_t child_i;
*match = NULL;