mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 19:58:18 +02:00
SynEditTextBuffer: initialize out variable. issue #41553
(cherry picked from commit d8e4b249c3
)
Co-authored-by: zeljan1 <zeljko@holobit.hr>
This commit is contained in:
parent
29f1eec2f3
commit
b20c594475
@ -1147,6 +1147,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