From ead295285d50a1c6905e4ce512f09b9e110677c8 Mon Sep 17 00:00:00 2001 From: sleeptightAnsiC <91839286+sleeptightAnsiC@users.noreply.github.com> Date: Sun, 2 Mar 2025 00:33:00 +0100 Subject: [PATCH] [rcore] style: store the result of InitPlatform() before checking it Small style change that doesn't impact how the code behaves here. Variable 'result' is not used anywhere else in this block, it's just for compliance with Raylib's coding conventions. Requested in PR: https://github.com/raysan5/raylib/pull/4803#discussion_r1976502788 --- src/rcore.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rcore.c b/src/rcore.c index d3c430ef0..049da7d32 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -681,7 +681,10 @@ void InitWindow(int width, int height, const char *title) // Initialize platform //-------------------------------------------------------------- - if(InitPlatform() != 0) { + int result = InitPlatform(); + + if (result != 0) + { TRACELOG(LOG_ERROR, "SYSTEM: Failed to initialize Platform"); return; }