* 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; counter: SizeInt;
begin begin
counter := 0; counter := 0;
while P[counter] <> #0 do if not Assigned(P) then
Inc(counter); StrEnd:=Nil
StrEnd := @(P[Counter]); else
begin
while P[counter] <> #0 do
Inc(counter);
StrEnd := @(P[Counter]);
end;
end; end;
{$endif FPC_UNIT_HAS_STREND} {$endif FPC_UNIT_HAS_STREND}