Explorar o código

--- Merging r29607 into '.':
U packages/fcl-registry/src/xmlreg.pp

# revisions: 29607

git-svn-id: branches/fixes_3_0@29608 -

marco %!s(int64=10) %!d(string=hai) anos
pai
achega
5e49bed957
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;
   Node : TDOMNode;
 
 
 begin
 begin
+  Result:=Nil;
   If FCurrentElement<>Nil then
   If FCurrentElement<>Nil then
     begin
     begin
     Node:=FCurrentElement.FirstChild;
     Node:=FCurrentElement.FirstChild;
-    Result:=Nil;
     While (Result=Nil) and (Assigned(Node)) do
     While (Result=Nil) and (Assigned(Node)) do
       begin
       begin
       If (Node.NodeType=ELEMENT_NODE) and (Node.NodeName=SValue) then
       If (Node.NodeType=ELEMENT_NODE) and (Node.NodeName=SValue) then