aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-21 20:04:59 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-21 20:04:59 +0000
commit3426d30f6a3b9f88b87e19b3b9046d9cc80f071f (patch)
treee98b650478fab51e25ac788fe43865465c27b31b
parentaa69e805e816774249f05198974892c616d77243 (diff)
don't initialize global variables list twice
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40789 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/pbx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 94d44c918..feae6d16d 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -238,7 +238,7 @@ int pbx_builtin_setvar(struct ast_channel *, void *);
static int pbx_builtin_importvar(struct ast_channel *, void *);
AST_MUTEX_DEFINE_STATIC(globalslock);
-static struct varshead globals;
+static struct varshead globals = AST_LIST_HEAD_NOLOCK_INIT_VALUE;
static int autofallthrough = 0;
@@ -5681,7 +5681,6 @@ int load_pbx(void)
ast_verbose( "Asterisk PBX Core Initializing\n");
ast_verbose( "Registering builtin applications:\n");
}
- AST_LIST_HEAD_INIT_NOLOCK(&globals);
ast_cli_register_multiple(pbx_cli, sizeof(pbx_cli) / sizeof(pbx_cli[0]));
/* Register builtin applications */