amiga: check if P is nil while processing params. this should never happen, except sometimes in real world it still happens. so lets be defensive about it

git-svn-id: trunk@49052 -
This commit is contained in:
Károly Balogh 2021-03-25 16:33:22 +00:00
parent 6b0d010a67
commit 50cb5707ef

View File

@ -116,7 +116,7 @@ begin
Count := 0;
{ first index is one }
LocalIndex := 1;
while (P[Count] <> #0) do
while assigned(P) and (P[Count] <> #0) do
begin
while (p[count]=' ') or (p[count]=#9) or (p[count]=LineEnding) do
Inc(count);