fix #50: crash on input

This commit is contained in:
CK Tan 2021-02-16 17:10:51 -08:00
parent c5d2e37db7
commit fd82018f79
1 changed files with 2 additions and 0 deletions

2
toml.c
View File

@ -1063,6 +1063,8 @@ static int parse_keyval(context_t* ctx, toml_table_t* tab)
toml_table_t* subtab = 0;
{
char* subtabstr = normalize_key(ctx, key);
if (!subtabstr) return -1;
subtab = toml_table_in(tab, subtabstr);
xfree(subtabstr);
}