Explorar o código

Initializa function result of FindValueKey when current element is nil

git-svn-id: trunk@29607 -
Marc Weustink %!s(int64=10) %!d(string=hai) anos
pai
achega
7001a02ac6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/fcl-registry/src/xmlreg.pp

+ 1 - 1
packages/fcl-registry/src/xmlreg.pp

@@ -426,10 +426,10 @@ Var
   Node : TDOMNode;
 
 begin
+  Result:=Nil;
   If FCurrentElement<>Nil then
     begin
     Node:=FCurrentElement.FirstChild;
-    Result:=Nil;
     While (Result=Nil) and (Assigned(Node)) do
       begin
       If (Node.NodeType=ELEMENT_NODE) and (Node.NodeName=SValue) then