* make use of AllocMem in fpc_dynarray_setlength

git-svn-id: trunk@46900 -
This commit is contained in:
florian 2020-09-19 21:06:11 +00:00
parent 0c316deab5
commit 449cc8f152

View File

@ -208,8 +208,7 @@ procedure fpc_dynarray_setlength(var p : pointer;pti : pointer;
{ do we have to allocate memory? }
if dims[0] = 0 then
exit;
getmem(newp,size);
fillchar(newp^,size,0);
newp:=AllocMem(size);
{$ifndef VER3_0}
{ call int_InitializeArray for management operators }
if assigned(eletypemngd) and (PTypeKind(eletype)^ in [tkRecord, tkObject]) then