From f59da1a3644d85782cb913b2ab0096fc7dfc0e3a Mon Sep 17 00:00:00 2001 From: makise-homura Date: Wed, 14 Aug 2024 23:22:59 +0300 Subject: [PATCH] hash: Suppress GCC 7.3 and MINGW maybe-uninitialized warning --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hash.c b/hash.c index 6af8527e..0f728efa 100644 --- a/hash.c +++ b/hash.c @@ -427,7 +427,7 @@ xmlHashUpdateInternal(xmlHashTablePtr hash, const xmlChar *key, void *payload, xmlHashDeallocator dealloc, int update) { xmlChar *copy, *copy2, *copy3; xmlHashEntry *entry = NULL; - size_t lengths[3]; + size_t lengths[3] = {0, 0, 0}; unsigned hashValue; int found = 0;