aboutsummaryrefslogtreecommitdiffstats
path: root/main/config.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-14 23:22:51 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-14 23:22:51 +0000
commit047060b50d4095156e27cb3fb6e2734665dffe4a (patch)
tree5a388ac80bb0e1e07dba37084ddbaf49b1711299 /main/config.c
parent55067c541d217e8c4423ffea5234eb751b43c1af (diff)
Merged revisions 69469 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r69469 | qwell | 2007-06-14 18:21:45 -0500 (Thu, 14 Jun 2007) | 4 lines 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.4@69470 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/config.c')
-rw-r--r--main/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/config.c b/main/config.c
index 845408861..172b97de1 100644
--- a/main/config.c
+++ b/main/config.c
@@ -921,7 +921,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)