diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-14 23:21:45 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-14 23:21:45 +0000 |
commit | f44cfe1f6b91311b40328fe852cdce08b794c72c (patch) | |
tree | 84c8755abb2d316479aeb9a38c66aea4e1e8aa0b /config.c | |
parent | 567b488768eb0f469d50822dd0fec353704c7a5a (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |