Browse Source

* Initialize result in StingToHex. Fixes issue #40388

Michaël Van Canneyt 2 years ago
parent
commit
896ca4bb75
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/fcl-hash/src/fphashutils.pp

+ 1 - 0
packages/fcl-hash/src/fphashutils.pp

@@ -236,6 +236,7 @@ end;
 
 function StringToHex(const s: ansistring): ansistring;
 begin
+  Result:='';
   if s='' then exit;
   BytesToHexStr(Result,@s[1],length(s));
 end;