From 367e169ad3008cee5b716b9ef7ad9a9aecbdf7cc Mon Sep 17 00:00:00 2001 From: Jason Mao <64656764+jasoncnm@users.noreply.github.com> Date: Tue, 2 Dec 2025 17:31:24 -0500 Subject: [PATCH] initializ some variables to prevent warnings (#515) --- src/raygui.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index 7381276..984537d 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -2692,8 +2692,8 @@ int GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode) { int offset = textBoxCursorIndex; int accCodepointSize = 0; - int prevCodepointSize; - int prevCodepoint; + int prevCodepointSize = 0; + int prevCodepoint = 0; // Check whitespace to delete (ASCII only) while (offset > 0) @@ -2744,8 +2744,8 @@ int GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode) { int offset = textBoxCursorIndex; //int accCodepointSize = 0; - int prevCodepointSize; - int prevCodepoint; + int prevCodepointSize = 0; + int prevCodepoint = 0; // Check whitespace to skip (ASCII only) while (offset > 0)