Fix CI build error

Fixes potential use of uninitialized variable.

(cherry picked from commit 37362202a4)
This commit is contained in:
Juan Linietsky 2023-04-08 18:21:08 +02:00 committed by Yuri Sizov
parent 08b825396f
commit 4616de0c5d

View File

@ -1968,7 +1968,7 @@ void CodeEdit::confirm_code_completion(bool p_replace) {
return;
}
char32_t caret_last_completion_char;
char32_t caret_last_completion_char = 0;
begin_complex_operation();
Vector<int> caret_edit_order = get_caret_index_edit_order();
for (const int &i : caret_edit_order) {