Skip to content

Commit

Permalink
fix uninitialized joystick event structure
Browse files Browse the repository at this point in the history
  • Loading branch information
smcameron committed Nov 12, 2013
1 parent efe6e37 commit 2d17f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snis_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@ static void deal_with_joystick()
#define XJOYSTICK_THRESHOLD_FINE 6000

/* Read events even if we don't use them just to consume them. */
memset(&jse.button, 0, sizeof(jse.button));
memset(&jse, 0, sizeof(jse));
rc = get_joystick_status(&jse);
if (rc != 0)
return;
Expand Down

0 comments on commit 2d17f15

Please sign in to comment.