Skip to content

Commit

Permalink
Wayland: Remove superfluous initialize to NULL
Browse files Browse the repository at this point in the history
The whole window struct has already been cleared to zero.
  • Loading branch information
elmindreda committed Dec 31, 2021
1 parent c1ecd46 commit 216ea3d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/wl_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,6 @@ int _glfwCreateWindowWayland(_GLFWwindow* window,
}
}

window->wl.currentCursor = NULL;

window->wl.monitors = _glfw_calloc(1, sizeof(_GLFWmonitor*));
window->wl.monitorsCount = 0;
window->wl.monitorsSize = 1;
Expand Down

0 comments on commit 216ea3d

Please sign in to comment.