fix #50: crash on input
This commit is contained in:
parent
c5d2e37db7
commit
fd82018f79
1 changed files with 2 additions and 0 deletions
2
toml.c
2
toml.c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue