mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
initialise with null pointers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35973 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6a962a48a8
commit
8f665684bd
1 changed files with 2 additions and 0 deletions
|
@ -594,6 +594,8 @@ static Class concreteClass = Nil;
|
|||
[NSException raise: NSMallocException
|
||||
format: @"Unable to grow array"];
|
||||
}
|
||||
memset(ptr + _capacity, '\0',
|
||||
(new_cap - _capacity) * sizeof(void*));
|
||||
_contents = ptr;
|
||||
_capacity = new_cap;
|
||||
_grow_factor = new_gf;
|
||||
|
|
Loading…
Reference in a new issue