diff --git a/src/context.c b/src/context.c index ee733277..0043d92e 100644 --- a/src/context.c +++ b/src/context.c @@ -638,7 +638,6 @@ GLFWAPI void glfwSwapInterval(int interval) GLFWAPI int glfwExtensionSupported(const char* extension) { _GLFWwindow* window; - assert(extension != NULL); _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); diff --git a/src/init.c b/src/init.c index 63f2fb86..e2dc03d6 100644 --- a/src/init.c +++ b/src/init.c @@ -181,10 +181,8 @@ GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev) { if (major != NULL) *major = GLFW_VERSION_MAJOR; - if (minor != NULL) *minor = GLFW_VERSION_MINOR; - if (rev != NULL) *rev = GLFW_VERSION_REVISION; } diff --git a/src/monitor.c b/src/monitor.c index 65971bf0..80712f33 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -262,6 +262,7 @@ void _glfwSplitBPP(int bpp, int* red, int* green, int* blue) GLFWAPI GLFWmonitor** glfwGetMonitors(int* count) { assert(count != NULL); + *count = 0; _GLFW_REQUIRE_INIT_OR_RETURN(NULL); diff --git a/src/window.c b/src/window.c index f4cb182d..88377307 100644 --- a/src/window.c +++ b/src/window.c @@ -445,7 +445,6 @@ GLFWAPI void glfwSetWindowTitle(GLFWwindow* handle, const char* title) { _GLFWwindow* window = (_GLFWwindow*) handle; assert(window != NULL); - assert(title != NULL); _GLFW_REQUIRE_INIT();