diff options
Diffstat (limited to 'ini')
-rw-r--r-- | ini/ini_parse.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ini/ini_parse.c b/ini/ini_parse.c index 5fa5b2e..8f81f74 100644 --- a/ini/ini_parse.c +++ b/ini/ini_parse.c @@ -1069,9 +1069,12 @@ static int handle_section(struct parser_obj *po, uint32_t *action) } /* Save the line number of the last found key */ - po->keylinenum = po->linenum; + po->seclinenum = po->linenum; - /* Complete processing of this value */ + /* Complete processing of this value. + * A new section will be created inside and a special + * value will be added. + */ error = complete_value_processing(po); if (error) { TRACE_ERROR_NUMBER("Failed to complete value processing", error); |