aboutsummaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-05 07:29:09 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-05 07:29:09 +0000
commita9c42b683869e74b2ff00930ef96d7f77882780d (patch)
tree2550873f62e7d6246b9599cf73b43f10352e0e61 /config.c
parent3846e876220af58db2af7f20a244941d307dda7a (diff)
Consider a comment to start with ;-- but not if there are more dashes (bug #2977)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4389 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'config.c')
-rwxr-xr-xconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 6fbef3e18..1d0337acf 100755
--- a/config.c
+++ b/config.c
@@ -532,7 +532,7 @@ static struct ast_config *__ast_load(const char *configfile, struct ast_config *
/* Yuck, gotta memmove */
memmove(comment_p - 1, comment_p, strlen(comment_p) + 1);
new_buf = comment_p;
- } else if(comment_p[1] == COMMENT_TAG && comment_p[2] == COMMENT_TAG) {
+ } else if(comment_p[1] == COMMENT_TAG && comment_p[2] == COMMENT_TAG && (comment_p[3] != '-')) {
/* Meta-Comment start detected ";--" */
if (comment < MAX_NESTED_COMMENTS) {
*comment_p = '\0';