aboutsummaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-14 23:21:45 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-14 23:21:45 +0000
commitf44cfe1f6b91311b40328fe852cdce08b794c72c (patch)
tree84c8755abb2d316479aeb9a38c66aea4e1e8aa0b /config.c
parent567b488768eb0f469d50822dd0fec353704c7a5a (diff)
Fix an issue where the line number in an unterminated comment block error message would show the wrong line number.
"Reported" to me on #asterisk (somebody posted an error message, and I happened to catch it) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69469 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 5136db92d..f235bb727 100644
--- a/config.c
+++ b/config.c
@@ -661,7 +661,7 @@ static struct ast_config *config_text_file_load(const char *database, const char
fclose(f);
} while(0);
if (comment) {
- ast_log(LOG_WARNING,"Unterminated comment detected beginning on line %d\n", nest[comment]);
+ ast_log(LOG_WARNING,"Unterminated comment detected beginning on line %d\n", nest[comment - 1]);
}
#ifdef AST_INCLUDE_GLOB
if (!cfg)