Merge pull request #269 from VectorCamp/bugfix/cppcheck-duplicateAssignment

Fix marked as false positive duplicateAssignExpression cppcheck warnings
This commit is contained in:
Konstantinos Margaritis 2024-05-13 10:26:25 +03:00 committed by GitHub
commit 017acc4265
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;