Skip to content

Commit 9641c14

Browse files
committed
[template] >> fixed not initializated variable in Quick.Template issue exilon#103
1 parent 7c34501 commit 9641c14

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Quick.Template.pas

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{ ***************************************************************************
22
3-
Copyright (c) 2016-2020 Kike Pérez
3+
Copyright (c) 2016-2022 Kike Pérez
44
55
Unit : Quick.Template
66
Description : String Replace Templates
77
Author : Kike Pérez
88
Version : 2.0
99
Created : 01/04/2020
10-
Modified : 30/06/2020
10+
Modified : 31/03/2022
1111
1212
This file is part of QuickLib: https://github.com/exilon/QuickLib
1313
@@ -106,6 +106,7 @@ function TStringTemplate.Replace(const aTemplate : string) : string;
106106
begin
107107
//resolve template
108108
Result := '';
109+
st := 0;
109110
idx := 1;
110111
repeat
111112
st := aTemplate.IndexOf(fQuoteBegin,st) + 1;

0 commit comments

Comments
 (0)