mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
ef07c63434
commit
0dabb69297
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…
Add table
Add a link
Reference in a new issue