Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6906:a201579e585d HEAD
"section changed at line" was always reporting the current line instead of
the previous section change line.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 03 Dec 2007 11:45:24 +0200 |
parents | 8c779f3e16be |
children | 25ca7c443357 |
files | src/lib-settings/settings.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-settings/settings.c Mon Dec 03 11:25:49 2007 +0200 +++ b/src/lib-settings/settings.c Mon Dec 03 11:45:24 2007 +0200 @@ -201,7 +201,6 @@ if (*line != '{') errormsg = "Expecting '='"; else { - last_section_line = linenum; sections++; if (next_section != NULL && strcmp(next_section, name) == 0) { @@ -229,9 +228,11 @@ last_section_line != 0) { errormsg = t_strdup_printf( SECTION_ERRORMSG, - errormsg, linenum); + errormsg, + last_section_line); } } + last_section_line = linenum; } } else { /* c) */