mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
Fix some comments in pbx.c and pbx_config.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
3
pbx.c
3
pbx.c
@@ -4096,12 +4096,13 @@ void __ast_context_destroy(struct ast_context *con, char *registrar, int lock)
|
|||||||
free(tmpil);
|
free(tmpil);
|
||||||
}
|
}
|
||||||
for (ipi = tmp->ignorepats; ipi; ) {
|
for (ipi = tmp->ignorepats; ipi; ) {
|
||||||
/* Free includes */
|
/* Free ignorepats */
|
||||||
ipl = ipi;
|
ipl = ipi;
|
||||||
ipi = ipi->next;
|
ipi = ipi->next;
|
||||||
free(ipl);
|
free(ipl);
|
||||||
}
|
}
|
||||||
for (sw = tmp->alts; sw; ) {
|
for (sw = tmp->alts; sw; ) {
|
||||||
|
/* Free switches */
|
||||||
swl = sw;
|
swl = sw;
|
||||||
sw = sw->next;
|
sw = sw->next;
|
||||||
free(swl);
|
free(swl);
|
||||||
|
@@ -1576,7 +1576,7 @@ static int pbx_load_module(void)
|
|||||||
}
|
}
|
||||||
cxt = ast_category_browse(cfg, NULL);
|
cxt = ast_category_browse(cfg, NULL);
|
||||||
while(cxt) {
|
while(cxt) {
|
||||||
/* All categories but "general" are considered contexts */
|
/* All categories but "general" or "globals" are considered contexts */
|
||||||
if (!strcasecmp(cxt, "general") || !strcasecmp(cxt, "globals")) {
|
if (!strcasecmp(cxt, "general") || !strcasecmp(cxt, "globals")) {
|
||||||
cxt = ast_category_browse(cfg, cxt);
|
cxt = ast_category_browse(cfg, cxt);
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user