From: Konstantinos Margaritis Date: Sat, 11 May 2024 20:13:45 +0000 (+0300) Subject: Fix false positive duplicateAssignExpression warnings X-Git-Tag: vectorscan/5.4.12^2~47^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F269%2Fhead;p=thirdparty%2Fvectorscan.git Fix false positive duplicateAssignExpression warnings --- diff --git a/src/scratch.c b/src/scratch.c index 9f6d77cd..aa15547b 100644 --- a/src/scratch.c +++ b/src/scratch.c @@ -83,9 +83,9 @@ hs_error_t alloc_scratch(const hs_scratch_t *proto, hs_scratch_t **scratch) { u32 anchored_literal_fatbit_size = proto->anchored_literal_fatbit_size; u32 som_store_size = proto->som_store_count * sizeof(u64a); - u32 som_attempted_store_size = proto->som_store_count * sizeof(u64a); + u32 som_attempted_store_size = som_store_size; // Same as som_store_size u32 som_now_size = proto->som_fatbit_size; - u32 som_attempted_size = proto->som_fatbit_size; + u32 som_attempted_size = som_now_size; // Same as som_now_size struct hs_scratch *s; struct hs_scratch *s_tmp;