SynEditTextBuffer: initialize out variable. issue #41553

(cherry picked from commit d8e4b249c3)

Co-authored-by: zeljan1 <zeljko@holobit.hr>
This commit is contained in:
Željan Rikalo 2025-03-31 19:28:38 +02:00 committed by Željan Rikalo
parent 29f1eec2f3
commit b20c594475

View File

@ -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