This solves bug 8342, whereby a crash occurs under certain circumstances while readin...
authorSteve Murphy <murf@digium.com>
Mon, 13 Nov 2006 19:15:45 +0000 (19:15 +0000)
committerSteve Murphy <murf@digium.com>
Mon, 13 Nov 2006 19:15:45 +0000 (19:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47577 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/config.c

index f1bcd18..8cd1194 100644 (file)
@@ -905,7 +905,7 @@ static struct ast_config *config_text_file_load(const char *database, const char
                                                        new_buf = comment_p + 1;
                                        }
                                }
-                               if( comment && !process_buf )
+                               if( withcomments && comment && !process_buf )
                                {
                                        CB_ADD(buf);  /* the whole line is a comment, store it */
                                }