mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Use ast_strdupa() instead of strdup(), thanks to sergee
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43763 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1258,7 +1258,7 @@ static int update_common_options(struct ast_variable *v, struct call_options *op
|
||||
} else if (!strcasecmp(v->name, "disallow")) {
|
||||
ast_parse_allow_disallow(&options->prefs, &options->capability, v->value, 0);
|
||||
} else if (!strcasecmp(v->name, "dtmfmode")) {
|
||||
val = strdupa(v->value);
|
||||
val = ast_strdupa(v->value);
|
||||
if ((opt = strchr(val, ':')) != (char *)NULL) {
|
||||
*opt++ = '\0';
|
||||
tmp = atoi(opt);
|
||||
|
Reference in New Issue
Block a user