summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-13 11:58:23 -0500
committerDavid Robillard <d@drobilla.net>2024-11-13 11:59:48 -0500
commit7f760acfdfa228f090332230f119072fb95c1aa4 (patch)
tree84f9e52440543478b54a51f4c47b5badcb94d47f /src
parent35e76431e5bdf24b67dc0b9a3f78367adb36b15c (diff)
downloadsord-7f760acfdfa228f090332230f119072fb95c1aa4.tar.gz
sord-7f760acfdfa228f090332230f119072fb95c1aa4.tar.bz2
sord-7f760acfdfa228f090332230f119072fb95c1aa4.zip
Initialize all variables
Diffstat (limited to 'src')
-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",