diff options
author | Matteo Brancaleoni <mbrancaleoni@espia.it> | 2003-03-18 06:00:18 +0000 |
---|---|---|
committer | Matteo Brancaleoni <mbrancaleoni@espia.it> | 2003-03-18 06:00:18 +0000 |
commit | 2c64ccad0fbca62fe1528e19f551c14db46366cd (patch) | |
tree | f8415b483851763c16dc9983cd34c8bb265982d9 /pbx/pbx_config.c | |
parent | 0954f713fcd63f0c8462fb25302dde8626aab151 (diff) |
Tue Mar 18 07:00:01 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@652 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_config.c')
-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) { |