mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 22:19:12 +02:00
SynEdit: Fixed crash due to uninitialised pointer. ATokenInfo.Tk.TokenStart may be trash, but the caller needs nil if there is no data.
(cherry picked from commit 05a5c1f416
)
This commit is contained in:
parent
b94f2d82e8
commit
7f2d12f0f3
@ -743,6 +743,7 @@ var
|
||||
TabExtra: Integer;
|
||||
HasTabs, HasDouble: Boolean;
|
||||
begin
|
||||
ATokenInfo := Default(TLazSynDisplayTokenInfoEx);
|
||||
ATokenInfo.Attr := nil;
|
||||
while True do begin
|
||||
Result := MaybeFetchToken; // Get token from View/Highlighter
|
||||
|
Loading…
Reference in New Issue
Block a user