diff options
author | matteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-03-18 06:00:18 +0000 |
---|---|---|
committer | matteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-03-18 06:00:18 +0000 |
commit | 15d2f7aa97d8aeb5c079eb0f8f12e34566cc25e3 (patch) | |
tree | f8415b483851763c16dc9983cd34c8bb265982d9 /pbx | |
parent | 5ed6a971dafbe158e7406bc15694187df80047c4 (diff) |
Tue Mar 18 07:00:01 CET 2003
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@652 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-x | pbx/pbx_config.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index ab2543895..f7b143daf 100755 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -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) { |