]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix an issue where the line number in an unterminated comment block error message...
authorJason Parker <jparker@digium.com>
Thu, 14 Jun 2007 23:21:45 +0000 (23:21 +0000)
committerJason Parker <jparker@digium.com>
Thu, 14 Jun 2007 23:21:45 +0000 (23:21 +0000)
"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.2@69469 65c4cc65-6c06-0410-ace0-fbb531ad65f3

config.c

index 5136db92df4aa9b857658ae4678f2d40f898900f..f235bb727e804c05683b9e498afc85eea5d6e414 100644 (file)
--- 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)