* Check for Nil in strend

git-svn-id: trunk@34493 -
This commit is contained in:
michael 2016-09-10 18:43:22 +00:00
parent 356395beaa
commit d94b9bd4ab

View File

@ -18,9 +18,14 @@
counter: SizeInt;
begin
counter := 0;
while P[counter] <> #0 do
Inc(counter);
StrEnd := @(P[Counter]);
if not Assigned(P) then
StrEnd:=Nil
else
begin
while P[counter] <> #0 do
Inc(counter);
StrEnd := @(P[Counter]);
end;
end;
{$endif FPC_UNIT_HAS_STREND}