X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_joystick.c;h=547c83963ac2aed677ad47e3554ef8bdecc187b6;hb=30971e75717f3d7b826714fbbb1171dfaf9164cf;hp=a978d7fa8b43a37f10e53b427cbb945bcd1bbe4e;hpb=d194f0183a9da1a5750843869acebfe02bdd5b91;p=freeglut diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index a978d7f..547c839 100644 --- a/src/freeglut_joystick.c +++ b/src/freeglut_joystick.c @@ -1039,7 +1039,7 @@ static int fghJoystickGetOEMProductName ( SFG_Joystick* joy, char *buf, int buf_ static void fghJoystickOpen( SFG_Joystick* joy ) { - int i; + int i = 0; #if TARGET_HOST_MACINTOSH OSStatus err; #endif @@ -1061,7 +1061,7 @@ static void fghJoystickOpen( SFG_Joystick* joy ) unsigned char u; # else # if defined( __linux__ ) - int counter; + int counter = 0; # endif # endif #endif