From 25b1bf1f001069d51c67f3f035b4199d961c120a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 4 Feb 2025 14:24:27 +0000 Subject: [PATCH] hasher: Make the static analyzer happy Signed-off-by: Michael Tremer --- src/pakfire/hasher.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pakfire/hasher.c b/src/pakfire/hasher.c index e2c6d5f7..ff2a2b98 100644 --- a/src/pakfire/hasher.c +++ b/src/pakfire/hasher.c @@ -18,6 +18,7 @@ # # #############################################################################*/ +#include #include #include @@ -329,6 +330,9 @@ int pakfire_hash_file(struct pakfire_ctx* ctx, if (r < 0) goto ERROR; + // To make the static analyzer happy + assert(hasher); + // Read the file into the hash functions while (!feof(f)) { bytes_read = fread(buffer, 1, sizeof(buffer), f); -- 2.39.5