]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 69469 via svnmerge from
authorJason Parker <jparker@digium.com>
Thu, 14 Jun 2007 23:22:51 +0000 (23:22 +0000)
committerJason Parker <jparker@digium.com>
Thu, 14 Jun 2007 23:22:51 +0000 (23:22 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@69470 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/config.c

index 845408861af0bbe9ae64ee7cfde9c28b99d36479..172b97de125558ae5e955d98bb78f6d2e2d99cda 100644 (file)
@@ -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)