Kaydet (Commit) 587c02d2 authored tarafından Caolán McNamara's avatar Caolán McNamara

malloc + memset(0,..) -> calloc

Change-Id: Ic7c496259258bf36cd885ed68912b43117f348f0
üst c0096b5b
......@@ -412,9 +412,8 @@ static sal_uInt8 *ttmalloc(sal_uInt32 nbytes)
sal_uInt32 n;
n = (nbytes + 3) & (sal_uInt32) ~3;
sal_uInt8* res = static_cast<sal_uInt8*>(malloc(n));
sal_uInt8* res = static_cast<sal_uInt8*>(calloc(n, 1));
assert(res != 0);
memset(res, 0, n);
return res;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment