projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b9c726
)
Consider a comment to start with ;-- but not if there are more dashes (bug #2977)
author
Mark Spencer
<markster@digium.com>
Sun, 5 Dec 2004 07:29:09 +0000
(07:29 +0000)
committer
Mark Spencer
<markster@digium.com>
Sun, 5 Dec 2004 07:29:09 +0000
(07:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4389
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
config.c
patch
|
blob
|
history
diff --git
a/config.c
b/config.c
index
6fbef3e
..
1d0337a
100755
(executable)
--- 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';