From 7f760acfdfa228f090332230f119072fb95c1aa4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Nov 2024 11:58:23 -0500 Subject: Initialize all variables --- src/sord.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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", -- cgit v1.2.1