From 68af883a8dd3e812718196b11d48a244478b651e Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Sun, 26 Dec 2010 00:05:28 -0500 Subject: Use section line number Use section line number for error reporting about the section collisions. --- ini/ini_parse.c | 7 +++++-- 1 file 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); -- cgit