Browse Source

* Initialize result in CountConnections

(cherry picked from commit b4d4c30a45a2072d3ce448fd8b62cfa58b7cdc90)
Michaël Van Canneyt 1 year ago
parent
commit
7c30501e11
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/fcl-db/src/sqldb/sqldbpool.pp

+ 1 - 0
packages/fcl-db/src/sqldb/sqldbpool.pp

@@ -1181,6 +1181,7 @@ Var
   Key : String;
   Key : String;
   L : TConnectionList;
   L : TConnectionList;
 begin
 begin
+  Result:=0;
   Key:=CreateKey(aDef);
   Key:=CreateKey(aDef);
   Lock;
   Lock;
   try
   try