Tue Mar 18 07:00:01 CET 2003

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@652 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matteo Brancaleoni
2003-03-18 06:00:18 +00:00
parent 0954f713fc
commit 2c64ccad0f
17 changed files with 395 additions and 286 deletions

View File

@@ -1512,8 +1512,12 @@ static int pbx_load_module(void)
appl = stringp;
if (!appl)
appl="";
if (!(start = strchr(appl, '(')))
appl = strsep(&stringp, ",");
if (!(start = strchr(appl, '('))) {
if (stringp)
appl = strsep(&stringp, ",");
else
appl = "";
}
if (start && (end = strrchr(appl, ')'))) {
*start = *end = '\0';
data = start + 1;
@@ -1525,7 +1529,10 @@ static int pbx_load_module(void)
data = strsep(&stringp, "\"");
stringp++;
} else {
data = strsep(&stringp, ",");
if (stringp)
data = strsep(&stringp, ",");
else
data = "";
}
cidmatch = strchr(ext, '/');
if (cidmatch) {