浏览代码

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;