mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Improve initialisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24741 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a62325a01f
commit
ea4a13d07c
12 changed files with 31 additions and 18 deletions
|
@ -68,7 +68,7 @@ static NSHTTPCookieStorage *storage = nil;
|
|||
o = (NSHTTPCookieStorage*)
|
||||
NSAllocateObject(self, 0, NSDefaultMallocZone());
|
||||
o->_NSHTTPCookieStorageInternal = (Internal*)
|
||||
NSZoneMalloc(NSDefaultMallocZone(), sizeof(Internal));
|
||||
NSZoneCalloc(NSDefaultMallocZone(), 1, sizeof(Internal));
|
||||
inst->_policy = NSHTTPCookieAcceptPolicyAlways;
|
||||
inst->_cookies = [NSMutableSet new];
|
||||
storage = o;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue