summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-04-05 22:44:11 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-04-05 22:44:11 +0200
commitf1e7f861e91244d91160db9adc1383f2a62ae715 (patch)
tree576d6bfdaac74ee95be513a2b5444859e78805f8 /src
parent0b20cb449a2c541b055fc58efaf64155d310846d (diff)
downloadweechat-f1e7f861e91244d91160db9adc1383f2a62ae715.zip
core: fix pointer to hash and hash_temp in doc generator
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-doc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/wee-doc.c b/src/core/wee-doc.c
index 64f78f97c..dd23b3ccb 100644
--- a/src/core/wee-doc.c
+++ b/src/core/wee-doc.c
@@ -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))
{