From 4616de0c5d6bcf4abe637e515eae2064e8f054a5 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 8 Apr 2023 18:21:08 +0200 Subject: Fix CI build error Fixes potential use of uninitialized variable. (cherry picked from commit 37362202a48f6ee731e14e47579979509bc23017) --- scene/gui/code_edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene') diff --git a/scene/gui/code_edit.cpp b/scene/gui/code_edit.cpp index 91c4fa3761..ca5e9b401c 100644 --- a/scene/gui/code_edit.cpp +++ b/scene/gui/code_edit.cpp @@ -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 caret_edit_order = get_caret_index_edit_order(); for (const int &i : caret_edit_order) { -- cgit v1.2.3