From 4b7c5f561b6e4d9eb62788de839b0b6f7080560d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 10 Oct 2024 07:56:33 -0700 Subject: [PATCH] =?UTF-8?q?Fixed=20warning:=20=E2=80=98new=5Fitem.probe=5F?= =?UTF-8?q?len=E2=80=99=20may=20be=20used=20uninitialized=20in=20this=20fu?= =?UTF-8?q?nction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/SDL_hashtable.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SDL_hashtable.c b/src/SDL_hashtable.c index 061de579e4..c77f55fe35 100644 --- a/src/SDL_hashtable.c +++ b/src/SDL_hashtable.c @@ -307,6 +307,7 @@ bool SDL_InsertIntoHashTable(SDL_HashTable *table, const void *key, const void * new_item.value = value; new_item.hash = hash; new_item.live = true; + new_item.probe_len = 0; table->num_occupied_slots++;