From 54fceaaf64a7d5205953a472e774d1ac748ee31a Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 28 Aug 2012 20:24:37 +0200 Subject: [PATCH] Clarified result comparison. --- src/x11_joystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11_joystick.c b/src/x11_joystick.c index 7f4fdbc1..09885373 100644 --- a/src/x11_joystick.c +++ b/src/x11_joystick.c @@ -127,7 +127,7 @@ static void pollJoystickEvents(void) if (errno == ENODEV) _glfwLibrary.X11.joystick[i].present = GL_FALSE; - if (result <= 0) + if (result < sizeof(e)) break; // We don't care if it's an init event or not