mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-07 02:21:24 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user