From: Michael Tremer Date: Tue, 4 Feb 2025 14:24:27 +0000 (+0000) Subject: hasher: Make the static analyzer happy X-Git-Tag: 0.9.30~153 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25b1bf1f001069d51c67f3f035b4199d961c120a;p=pakfire.git hasher: Make the static analyzer happy Signed-off-by: Michael Tremer --- 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);