Skip to content

Commit

Permalink
Initialize dict to null
Browse files Browse the repository at this point in the history
  • Loading branch information
btrkeks committed May 4, 2024
1 parent e419cfd commit e2033cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dictpopup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e2033cc

Please sign in to comment.