From b33f8416dbd80825ff510001b9b963ed89848048 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 19 Jan 2024 14:01:26 +0530 Subject: [PATCH] Fix for spurious github code scanning alert --- glfw/context.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/glfw/context.c b/glfw/context.c index 44e4d1a2c..7fd9ce9f9 100644 --- a/glfw/context.c +++ b/glfw/context.c @@ -32,7 +32,6 @@ #include #include #include -#include #include @@ -236,10 +235,10 @@ bool _glfwRefreshContextAttribs(_GLFWwindow* window, } } - if (!sscanf(version, "%d.%d.%d", + if (sscanf(version, "%d.%d.%d", &window->context.major, &window->context.minor, - &window->context.revision)) + &window->context.revision) < 1) { if (window->context.client == GLFW_OPENGL_API) {