aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spellsuggest.c
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-02-27 22:16:12 +0000
committerGitHub <noreply@github.com>2023-02-27 22:16:12 +0000
commit8ecd129f1ef92aefea506247677f2693c5db9efd (patch)
treeb83ee00c80b4e95e1969f6db9f624db8219845fa /src/nvim/spellsuggest.c
parentb50ee4a8dc4306e4be78ac33fb74b21dc6be5538 (diff)
downloadrneovim-8ecd129f1ef92aefea506247677f2693c5db9efd.tar.gz
rneovim-8ecd129f1ef92aefea506247677f2693c5db9efd.tar.bz2
rneovim-8ecd129f1ef92aefea506247677f2693c5db9efd.zip
fix: address -Wmaybe-uninitialized warnings (#22436)
Diffstat (limited to 'src/nvim/spellsuggest.c')
-rw-r--r--src/nvim/spellsuggest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/spellsuggest.c b/src/nvim/spellsuggest.c
index d176a65228..ea2d5e6ff7 100644
--- a/src/nvim/spellsuggest.c
+++ b/src/nvim/spellsuggest.c
@@ -1209,7 +1209,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char *fword, bool soun
// The loop may take an indefinite amount of time. Break out after some
// time.
- proftime_T time_limit;
+ proftime_T time_limit = 0;
if (spell_suggest_timeout > 0) {
time_limit = profile_setlimit(spell_suggest_timeout);
}