Fixes a potential crash in TStrings.SaveToStream

git-svn-id: trunk@16187 -
This commit is contained in:
sekelsenmat 2010-10-19 15:50:13 +00:00
parent 7e5ff8ca89
commit 8b6e8079ec

View File

@ -851,6 +851,7 @@ Var
S : String;
begin
S:=Text;
if S = '' then Exit;
Stream.WriteBuffer(Pointer(S)^,Length(S));
end;