mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 16:39:36 +01:00
* make ansistring unique before starting to change it using a pchar
git-svn-id: trunk@23055 -
This commit is contained in:
parent
c7255f153e
commit
d749ac5354
@ -708,6 +708,8 @@ end;
|
||||
P: PChar;
|
||||
begin
|
||||
Result := s;
|
||||
{ make result unique since we're going to change it via a pchar }
|
||||
uniquestring(result);
|
||||
L := Length(Result);
|
||||
if L=0 then
|
||||
exit;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user