* the writestr helper initializes the target string, so mark it as being written

before the call to the helper to get proper life information

git-svn-id: trunk@26017 -
This commit is contained in:
florian 2013-11-10 20:20:40 +00:00
parent 8be7cfa05f
commit 412dc6586f

View File

@ -1251,6 +1251,10 @@ implementation
else
name:='fpc_setupwritestr_';
name:=name+tstringdef(filepara.resultdef).stringtypname;
{ the file para is a var parameter, but it is properly initialized,
so it should be actually an out parameter }
if not(do_read) then
set_varstate(filepara.left,vs_written,[]);
{ remove the source/destination string parameter from the }
{ parameter chain }
left:=filepara.right;