From e2033cc690fbc79dddd135debb7ef9c35ebf1711 Mon Sep 17 00:00:00 2001 From: butterkeks Date: Sat, 4 May 2024 10:28:02 +0200 Subject: [PATCH] Initialize dict to null --- src/dictpopup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dictpopup.c b/src/dictpopup.c index c738387..4065b46 100644 --- a/src/dictpopup.c +++ b/src/dictpopup.c @@ -80,7 +80,7 @@ static void add_deinflections_to_dict(database_t db[static 1], s8 word, dictentr static dictentry *lookup(database_t db[static 1], s8 word) { dbg("Looking up: %.*s", (int)word.len, word.s); - dictentry *dict; + dictentry *dict = NULL; db_get_dictents(db, word, &dict); add_deinflections_to_dict(db, word, &dict); return dict;