mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Change BlockZero to memset.
This commit is contained in:
parent
78a692454a
commit
c90ff9b46e
@ -564,7 +564,7 @@ void *calloc(size_t nele, size_t elesize)
|
||||
size_t space = nele * elesize;
|
||||
void *newBlock = ::malloc(space);
|
||||
if (newBlock)
|
||||
BlockZero(newBlock, space);
|
||||
memset(newBlock, 0, space);
|
||||
return newBlock;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user