Browse Source

[template] >> fixed not initializated variable in Quick.Template issue #103

Exilon 3 years ago
parent
commit
9641c1479b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Quick.Template.pas

+ 3 - 2
Quick.Template.pas

@@ -1,13 +1,13 @@
 { ***************************************************************************
 
-  Copyright (c) 2016-2020 Kike Pérez
+  Copyright (c) 2016-2022 Kike Pérez
 
   Unit        : Quick.Template
   Description : String Replace Templates
   Author      : Kike Pérez
   Version     : 2.0
   Created     : 01/04/2020
-  Modified    : 30/06/2020
+  Modified    : 31/03/2022
 
   This file is part of QuickLib: https://github.com/exilon/QuickLib
 
@@ -106,6 +106,7 @@ var
 begin
   //resolve template
   Result := '';
+  st := 0;
   idx := 1;
   repeat
     st := aTemplate.IndexOf(fQuoteBegin,st) + 1;