summaryrefslogtreecommitdiffstats
path: root/src/sord.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sord.c')
-rw-r--r--src/sord.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sord.c b/src/sord.c
index 52a9ad0..1adab9e 100644
--- a/src/sord.c
+++ b/src/sord.c
@@ -526,7 +526,7 @@ sord_iter_scan_next(SordIter* iter)
return true;
}
- const SordNode** key;
+ const SordNode** key = NULL;
if (!iter->end) {
switch (iter->mode) {
case ALL:
@@ -867,8 +867,8 @@ sord_find(SordModel* model, const SordQuad pat)
return sord_begin(model);
}
- SearchMode mode;
- int n_prefix;
+ SearchMode mode = ALL;
+ int n_prefix = 0;
const SordOrder index_order = sord_best_index(model, pat, &mode, &n_prefix);
SORD_FIND_LOG("Find " TUP_FMT " index=%s mode=%u n_prefix=%d\n",