From f883d170d6b1681d4f2ac62fcd1b8483c0e46e38 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 19 Mar 2009 13:22:43 +0000 Subject: [PATCH] Monotone-Parent: 23f3b4b43483ecae3cd406145e28b0e2434afda0 Monotone-Revision: 60a13624c1564d45c6a2e6232501d6fd9ec1cb04 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-03-19T13:22:43 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ SoObjects/SOGo/SOGoUserFolder.m | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4db25ca89..1ceca075b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-03-19 Wolfgang Sourdeau + + * SoObjects/SOGo/SOGoUserFolder.m: initialize max to the correct value. + 2009-03-18 Francis Lachapelle * UI/MainUI/SOGoRootPage.m ([SOGoRootPage -version]): new method diff --git a/SoObjects/SOGo/SOGoUserFolder.m b/SoObjects/SOGo/SOGoUserFolder.m index 94ce19c9b..4f4600ea6 100644 --- a/SoObjects/SOGo/SOGoUserFolder.m +++ b/SoObjects/SOGo/SOGoUserFolder.m @@ -125,6 +125,7 @@ static NSString *LDAPContactInfoAttribute = nil; filter = [NSMutableDictionary dictionaryWithCapacity: 2]; children = [parentNode getElementsByTagName: @"prop-match"]; + max = [children count]; for (count = 0; count < max; count++) { node = [children objectAtIndex: count];