mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
backport memory initialisation fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/stable@24743 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6c08f6b082
commit
1817234997
9 changed files with 20 additions and 11 deletions
|
@ -51,7 +51,7 @@ static NSLock *regLock = nil;
|
|||
|
||||
if (o != nil)
|
||||
{
|
||||
o->_NSURLProtocolInternal = NSZoneMalloc(z, sizeof(Internal));
|
||||
o->_NSURLProtocolInternal = NSZoneCalloc(z, 1, sizeof(Internal));
|
||||
}
|
||||
return o;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue