Преглед изворни кода

Fixes a potential crash in TStrings.SaveToStream

git-svn-id: trunk@16187 -
sekelsenmat пре 15 година
родитељ
комит
8b6e8079ec
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      rtl/objpas/classes/stringl.inc

+ 1 - 0
rtl/objpas/classes/stringl.inc

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