Fix for spurious github code scanning alert

This commit is contained in:
Kovid Goyal 2024-01-19 14:01:26 +05:30
parent 9503725a32
commit b33f8416db
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

5
glfw/context.c vendored
View File

@ -32,7 +32,6 @@
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <stdio.h>
@ -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)
{