HASH: Initialize hash in digest().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
parent
5792fe60a0
commit
c21839e4f1
@ -206,6 +206,7 @@ module hash
|
||||
|
||||
!-------------------------------------------------------------------------------
|
||||
!
|
||||
hash = 0
|
||||
select case(hash_id)
|
||||
case(hash_xxh64)
|
||||
#ifndef XXHASH
|
||||
@ -215,8 +216,7 @@ module hash
|
||||
case(hash_xxh3)
|
||||
hash = xxh3_lib(buffer, length)
|
||||
#endif /* XXHASH */
|
||||
case(hash_none)
|
||||
hash = 0
|
||||
case default
|
||||
end select
|
||||
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user