mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 17:59:27 +02:00
* 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:
parent
8be7cfa05f
commit
412dc6586f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user