mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:09:27 +02:00
rtl/osheap: fixed a dumb reversed condition in osheap/SysAllocMem()
This commit is contained in:
parent
b54068d1a4
commit
c298c0e0da
@ -79,7 +79,7 @@
|
||||
function SysAllocMem(size: ptruint): pointer;
|
||||
begin
|
||||
result := SysGetMem(size);
|
||||
if not assigned(result) then
|
||||
if assigned(result) then
|
||||
FillChar(result^,SysMemSize(result),0);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user