mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-06 19:34:36 +01:00
* Check for Nil in strend
git-svn-id: trunk@34493 -
This commit is contained in:
parent
356395beaa
commit
d94b9bd4ab
@ -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}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user