1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 10:43:13 +02:00

core: fix pointer to hash and hash_temp in doc generator

This commit is contained in:
Sébastien Helleu
2023-04-05 22:44:11 +02:00
parent 0b20cb449a
commit f1e7f861e9
+2 -2
View File
@@ -147,11 +147,11 @@ doc_gen_close_file (const char *path, const char *doc, const char *name,
path, DIR_SEPARATOR, doc, name, lang);
rc_temp = weecrypto_hash_file (filename_temp, GCRY_MD_SHA512,
&hash_temp, NULL);
hash_temp, NULL);
if (!rc_temp)
return -1;
rc = weecrypto_hash_file (filename, GCRY_MD_SHA512, &hash, NULL);
rc = weecrypto_hash_file (filename, GCRY_MD_SHA512, hash, NULL);
if (!rc || (memcmp (hash_temp, hash, sizeof (hash)) != 0))
{