mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
Merged revisions 72272 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r72272 | russell | 2007-06-27 16:08:34 -0500 (Wed, 27 Jun 2007) | 13 lines Merged revisions 72267 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72267 | russell | 2007-06-27 16:06:45 -0500 (Wed, 27 Jun 2007) | 5 lines Fix a minor issue with parsing the priority number. You could have as much whitespace as you want around a numeric priority, but you couldn't have any whitespace around a special priority like "n" or "hint". (issue #10039, reported by mitheloc, fixed by me) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72274 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1401,6 +1401,8 @@ static int pbx_load_config(const char *config_file)
|
|||||||
pri = strsep(&stringp, ",");
|
pri = strsep(&stringp, ",");
|
||||||
if (!pri)
|
if (!pri)
|
||||||
pri="";
|
pri="";
|
||||||
|
pri = ast_skip_blanks(pri);
|
||||||
|
pri = ast_trim_blanks(pri);
|
||||||
label = strchr(pri, '(');
|
label = strchr(pri, '(');
|
||||||
if (label) {
|
if (label) {
|
||||||
*label++ = '\0';
|
*label++ = '\0';
|
||||||
|
|||||||
Reference in New Issue
Block a user