mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 01:08:12 +02:00
SynEditTextBuffer: initialize out variable. issue #41553
This commit is contained in:
parent
ede6127216
commit
d8e4b249c3
@ -1141,6 +1141,7 @@ end;
|
||||
|
||||
function TSynEditStringList.GetPChar(ALineIndex: Integer; out ALen: Integer): PChar;
|
||||
begin
|
||||
ALen := 0;
|
||||
if (ALineIndex = 0) and (Count = 0) then // simulate empty line
|
||||
Result := nil
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user