mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
(closes issue #13899)
Reported by: akkornel This fix is the result of a bug fix in ast_app_separate_args r124395. If an argument does not exist it should always be set to a null string rather than a null pointer. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@157365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2711,7 +2711,7 @@ static int conf_exec(struct ast_channel *chan, void *data)
|
||||
if (args.options) {
|
||||
ast_app_parse_options(meetme_opts, &confflags, optargs, args.options);
|
||||
dynamic = ast_test_flag(&confflags, CONFFLAG_DYNAMIC | CONFFLAG_DYNAMICPIN);
|
||||
if (ast_test_flag(&confflags, CONFFLAG_DYNAMICPIN) && !args.pin)
|
||||
if (ast_test_flag(&confflags, CONFFLAG_DYNAMICPIN) && ast_strlen_zero(args.pin))
|
||||
strcpy(the_pin, "q");
|
||||
|
||||
empty = ast_test_flag(&confflags, CONFFLAG_EMPTY | CONFFLAG_EMPTYNOPIN);
|
||||
|
Reference in New Issue
Block a user