summaryrefslogtreecommitdiffstats
path: root/src/glut/glx/glut_cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glut/glx/glut_cursor.c')
-rw-r--r--src/glut/glx/glut_cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glut/glx/glut_cursor.c b/src/glut/glx/glut_cursor.c
index 28e95568d64..c0a5a5b7afc 100644
--- a/src/glut/glx/glut_cursor.c
+++ b/src/glut/glx/glut_cursor.c
@@ -118,7 +118,7 @@ void
__glutSetCursor(GLUTwindow *window)
{
int cursor = window->cursor;
- Cursor xcursor;
+ Cursor xcursor = 0;
if (cursor >= 0 &&
cursor < sizeof(cursorTable) / sizeof(cursorTable[0])) {