fix: address -Wmaybe-uninitialized warnings (#22436)

This commit is contained in:
Lewis Russell
2023-02-27 22:16:12 +00:00
committed by GitHub
parent b50ee4a8dc
commit 8ecd129f1e
3 changed files with 4 additions and 4 deletions

View File

@@ -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);
}