diff --git a/src/context.c b/src/context.c index 99d7489f..f8b80085 100644 --- a/src/context.c +++ b/src/context.c @@ -599,7 +599,7 @@ GLFWAPI int glfwExtensionSupported(const char* extension) return GL_FALSE; } - if (!extension || *extension == '\0') + if (*extension == '\0') { _glfwInputError(GLFW_INVALID_VALUE, NULL); return GL_FALSE;