mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 10:49:09 +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;
|
S : String;
|
||||||
begin
|
begin
|
||||||
S:=Text;
|
S:=Text;
|
||||||
|
if S = '' then Exit;
|
||||||
Stream.WriteBuffer(Pointer(S)^,Length(S));
|
Stream.WriteBuffer(Pointer(S)^,Length(S));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user