diff --git a/lib/mte/mteHelpers.pas b/lib/mte/mteHelpers.pas index 9eb369b..ba2575f 100644 --- a/lib/mte/mteHelpers.pas +++ b/lib/mte/mteHelpers.pas @@ -173,8 +173,9 @@ function ShortenVersion(vs: string; numClauses: Integer): string; var i, numDots: Integer; begin + Result := ''; numDots := 0; - for i := 0 to Pred(Length(vs)) do begin + for i := 1 to Pred(Length(vs)) do begin if vs[i] = '.' then Inc(numDots); if numDots = numClauses then