Procházet zdrojové kódy

Fixes a potential crash in TStrings.SaveToStream

git-svn-id: trunk@16187 -
sekelsenmat před 15 roky
rodič
revize
8b6e8079ec
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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;