diff options
author | David Robillard <d@drobilla.net> | 2024-11-13 11:58:23 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-13 11:59:48 -0500 |
commit | 7f760acfdfa228f090332230f119072fb95c1aa4 (patch) | |
tree | 84f9e52440543478b54a51f4c47b5badcb94d47f /src | |
parent | 35e76431e5bdf24b67dc0b9a3f78367adb36b15c (diff) | |
download | sord-7f760acfdfa228f090332230f119072fb95c1aa4.tar.gz sord-7f760acfdfa228f090332230f119072fb95c1aa4.tar.bz2 sord-7f760acfdfa228f090332230f119072fb95c1aa4.zip |
Initialize all variables
Diffstat (limited to 'src')
-rw-r--r-- | src/sord.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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", |