mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 23:39:31 +02:00
* fix from Michalis K. for nesting depth of XMLs (# 11957)
git-svn-id: trunk@11644 -
This commit is contained in:
parent
e89ee84c53
commit
622ace494e
@ -2979,9 +2979,9 @@ end;
|
||||
|
||||
procedure TXMLReader.PushVC(aElDef: TDOMElementDef);
|
||||
begin
|
||||
if FNesting = Length(FValidator) then
|
||||
SetLength(FValidator, FNesting * 2);
|
||||
Inc(FNesting);
|
||||
if FNesting >= Length(FValidator) then
|
||||
SetLength(FValidator, FNesting * 2);
|
||||
FValidator[FNesting].FElementDef := aElDef;
|
||||
FValidator[FNesting].FCurCP := nil;
|
||||
FValidator[FNesting].FFailed := False;
|
||||
|
Loading…
Reference in New Issue
Block a user