summaryrefslogtreecommitdiff
path: root/pbx/pbx_config.c
diff options
context:
space:
mode:
authorMatteo Brancaleoni <mbrancaleoni@espia.it>2003-02-13 06:00:14 +0000
committerMatteo Brancaleoni <mbrancaleoni@espia.it>2003-02-13 06:00:14 +0000
commit52a7b81e248f05d6c1e87d2d9260f04632e3b3d7 (patch)
tree6de335942589dc50bacb98f3c1119222c6cb97d5 /pbx/pbx_config.c
parent2bd936105e72e2dcc1f847a28f04b2538e83020f (diff)
Thu Feb 13 07:00:00 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_config.c')
-rwxr-xr-xpbx/pbx_config.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index 56de6ed26..ab2543895 100755
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -1510,10 +1510,10 @@ static int pbx_load_module(void)
if (!pri)
pri="";
appl = stringp;
- if (!(start = strchr(appl, '(')))
- appl = strsep(&stringp, ",");
if (!appl)
appl="";
+ if (!(start = strchr(appl, '(')))
+ appl = strsep(&stringp, ",");
if (start && (end = strrchr(appl, ')'))) {
*start = *end = '\0';
data = start + 1;
@@ -1588,7 +1588,10 @@ int load_module(void)
int reload(void)
{
ast_context_destroy(NULL, registrar);
+ /* For martin's global variables, don't clear them on reload */
+#if 0
pbx_builtin_clear_globals();
+#endif
pbx_load_module();
return 0;
}