mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 22:59:15 +02:00
FpDebug: fix uninitialized return value
(cherry picked from commit 2e8783e5e0
)
This commit is contained in:
parent
728e5108bc
commit
8c625ac0c6
@ -965,7 +965,8 @@ end;
|
|||||||
|
|
||||||
function TFpValue.GetDataSize: TFpDbgValueSize;
|
function TFpValue.GetDataSize: TFpDbgValueSize;
|
||||||
begin
|
begin
|
||||||
GetSize(Result);
|
if not GetSize(Result) then
|
||||||
|
Result := ZeroSize;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TFpValue.GetSize(out ASize: TFpDbgValueSize): Boolean;
|
function TFpValue.GetSize(out ASize: TFpDbgValueSize): Boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user