mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
fix potential problem deleting header
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30735 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
15f4308a20
commit
21cc7900a3
1 changed files with 1 additions and 9 deletions
|
@ -5144,15 +5144,7 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
|
|||
*/
|
||||
- (void) deleteHeader: (GSMimeHeader*)aHeader
|
||||
{
|
||||
NSUInteger count = [headers count];
|
||||
|
||||
while (count-- > 0)
|
||||
{
|
||||
if ([aHeader isEqual: [headers objectAtIndex: count]] == YES)
|
||||
{
|
||||
[headers removeObjectAtIndex: count];
|
||||
}
|
||||
}
|
||||
[headers removeObjectIdenticalTo: aHeader];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue