Fix for spurious github code scanning alert
This commit is contained in:
parent
9503725a32
commit
b33f8416db
1 changed files with 2 additions and 3 deletions
5
glfw/context.c
vendored
5
glfw/context.c
vendored
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue