On 02/21/2019 04:33 PM, James Prestwood wrote:
A settings file containing a key/value but no group caused
l_settings_load_from_data to segfault. This was due to not checking
that a group was actually found before parsing a key/value pair.
A new flag was added, 'has_group', which gets set after a group has
been parsed successfully. This flag also must be true for the load
to be successful.
Also, the return of parse_key was being checked against false, when
it actually is returning a unsigned int. This was changed to just
ell/settings.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
Both applied, thanks.