From 9f917052ad6dbd872582bad31336ec85523c9e5d Mon Sep 17 00:00:00 2001 From: Guldoman Date: Sun, 27 Nov 2022 00:45:57 +0100 Subject: [PATCH] Add initialization to variable in `ren_draw_text` --- src/renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer.c b/src/renderer.c index 067df885..710df92a 100644 --- a/src/renderer.c +++ b/src/renderer.c @@ -386,7 +386,7 @@ float ren_draw_text(RenFont **fonts, const char *text, float x, int y, RenColor uint8_t* destination_pixels = surface->pixels; int clip_end_x = clip.x + clip.width, clip_end_y = clip.y + clip.height; - RenFont* last; + RenFont* last = NULL; float last_pen_x = x; bool underline = fonts[0]->style & FONT_STYLE_UNDERLINE; bool strikethrough = fonts[0]->style & FONT_STYLE_STRIKETHROUGH;