From f1e7f861e91244d91160db9adc1383f2a62ae715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 5 Apr 2023 22:44:11 +0200 Subject: [PATCH] core: fix pointer to hash and hash_temp in doc generator --- src/core/wee-doc.c | 4 ++-- 1 file 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)) {