fixed sporadic Bus Error in GetAvailableDisplayModes

This commit is contained in:
Scott W Palmer 2003-05-23 03:07:46 +00:00
parent 5411e23b7a
commit 79823229f9
1 changed files with 3 additions and 2 deletions

View File

@ -79,7 +79,8 @@ static double _getDictDouble (CFDictionaryRef refDict, CFStringRef key)
jobjectArray GetAvailableDisplayModesOSX(JNIEnv * env)
{
CFIndex i, count, availableModes;
CFIndex i, count;
CFIndex availableModes = 0;
CFArrayRef displayModes = NULL;
int n = 0;