mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-26 15:10:25 +02: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;
|
||||
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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user