Thu Feb 13 07:00:00 CET 2003

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matteo Brancaleoni
2003-02-13 06:00:14 +00:00
parent 2bd936105e
commit 52a7b81e24
4 changed files with 45 additions and 8 deletions

View File

@@ -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;
}