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
1.6.0
Paul Cadach 19 years ago
parent 46c0ca89c2
commit e1e63b2355

@ -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);

Loading…
Cancel
Save