From ff32c3a08516de03eff0afa2a3ef57c3890da542 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 11 Sep 2008 21:59:31 +0000 Subject: [PATCH] Monotone-Parent: 1ade254d62fcb6133186bc9896363a6fa7dc5f90 Monotone-Revision: 006f65029068e73f339a0342b4050f3ccee0b122 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-09-11T21:59:31 Monotone-Branch: ca.inverse.sogo --- UI/MailerUI/UIxMailToSelection.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/UI/MailerUI/UIxMailToSelection.m b/UI/MailerUI/UIxMailToSelection.m index 83aa7174b..407125505 100644 --- a/UI/MailerUI/UIxMailToSelection.m +++ b/UI/MailerUI/UIxMailToSelection.m @@ -179,7 +179,8 @@ static NSArray *headers = nil; - (NSArray *) addressLists { NSMutableArray *ma; - + NSArray *tmp; + ma = [NSMutableArray arrayWithCapacity:3]; if ([to isNotNull] && [to count] > 0) [ma addObject: to]; @@ -191,9 +192,9 @@ static NSArray *headers = nil; /* ensure that at least one object is available */ if ([ma count] == 0) { - NSArray *tmp = [NSArray arrayWithObject:@""]; + tmp = [NSArray arrayWithObject: @""]; ASSIGN (to, tmp); - [ma addObject:to]; + [ma addObject: to]; } return ma;