mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 00:28:18 +02:00
LazUtils: TXMLConfig fixed crash with uninitialized result value. (If "CreateNodes" is false, and [] value is not cached)
This commit is contained in:
parent
7771de23e5
commit
4e97ffa45f
@ -990,6 +990,7 @@ var
|
||||
cmp, BrPos: Integer;
|
||||
NodeName: string;
|
||||
begin
|
||||
Result := nil;
|
||||
BrPos := Pos('[', aName);
|
||||
if (Length(aName)>=BrPos+2) and (aName[Length(aName)]=']')
|
||||
and TryStrToInt(Trim(Copy(aName, BrPos+1, Length(aName)-BrPos-1)), m) then
|
||||
|
Loading…
Reference in New Issue
Block a user