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:
Richard Frith-MacDonald 2007-03-01 17:35:43 +00:00
parent a62325a01f
commit ea4a13d07c
12 changed files with 31 additions and 18 deletions

View file

@ -51,8 +51,7 @@ static NSURLCache *shared = nil;
if (o != nil)
{
o->_NSURLCacheInternal = NSZoneMalloc(z, sizeof(Internal));
memset(o->_NSURLCacheInternal, '\0', sizeof(Internal));
o->_NSURLCacheInternal = NSZoneCalloc(z, 1, sizeof(Internal));
}
return o;
}