From 3e1bdccf75347a7fffde57a2be74e94641a9a709 Mon Sep 17 00:00:00 2001 From: Warwick Date: Fri, 28 Nov 2025 13:03:54 +0000 Subject: [PATCH] Added return null to missing error case in window init --- src/window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window.c b/src/window.c index a8a582e..b968862 100644 --- a/src/window.c +++ b/src/window.c @@ -42,6 +42,7 @@ wn_window *wn_window_init(Arena *arena) { if (!SDL_GL_MakeCurrent(window->window, window->glcontext)) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't make glcontext current: %s", SDL_GetError()); + return NULL; } // hide and lock mouse