mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:09:42 +02:00
Fixes a potential crash in TStrings.SaveToStream
git-svn-id: trunk@16187 -
This commit is contained in:
parent
7e5ff8ca89
commit
8b6e8079ec
@ -851,6 +851,7 @@ Var
|
||||
S : String;
|
||||
begin
|
||||
S:=Text;
|
||||
if S = '' then Exit;
|
||||
Stream.WriteBuffer(Pointer(S)^,Length(S));
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user