diff --git a/SoObjects/SOGo/SOGoDefaultsSource.m b/SoObjects/SOGo/SOGoDefaultsSource.m index bbc69e392..e9d9f1035 100644 --- a/SoObjects/SOGo/SOGoDefaultsSource.m +++ b/SoObjects/SOGo/SOGoDefaultsSource.m @@ -296,6 +296,7 @@ static Class NSStringKlass = Nil; int count, max; stringArray = [self arrayForKey: key]; + max = [stringArray count]; for (count = 0; stringArray && count < max; count++) if (![[stringArray objectAtIndex: count] isKindOfClass: NSStringKlass]) {