mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 15:10:16 +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;
|
cmp, BrPos: Integer;
|
||||||
NodeName: string;
|
NodeName: string;
|
||||||
begin
|
begin
|
||||||
|
Result := nil;
|
||||||
BrPos := Pos('[', aName);
|
BrPos := Pos('[', aName);
|
||||||
if (Length(aName)>=BrPos+2) and (aName[Length(aName)]=']')
|
if (Length(aName)>=BrPos+2) and (aName[Length(aName)]=']')
|
||||||
and TryStrToInt(Trim(Copy(aName, BrPos+1, Length(aName)-BrPos-1)), m) then
|
and TryStrToInt(Trim(Copy(aName, BrPos+1, Length(aName)-BrPos-1)), m) then
|
||||||
|
Loading…
Reference in New Issue
Block a user