提交 7ab7e8be authored 作者: Chris Rienzo's avatar Chris Rienzo 提交者: Andrey Volk

FS-11785 [mod_httapi] Fix dead assignment and null pointer false positive

上级 2f415a64
......@@ -955,8 +955,6 @@ static switch_status_t parse_record(const char *tag_name, client_t *client, swit
const char *sub_action = NULL;
const char *digit_timeout_ = switch_xml_attr(tag, "digit-timeout");
const char *terminators = switch_xml_attr(tag, "terminators");
char *loops_ = (char *) switch_xml_attr(tag, "loops");
int loops = 0;
switch_status_t status = SWITCH_STATUS_SUCCESS;
switch_ivr_dmachine_t *dmachine = NULL;
switch_input_args_t *args = NULL, myargs = { 0 };
......@@ -991,6 +989,7 @@ static switch_status_t parse_record(const char *tag_name, client_t *client, swit
}
}
switch_assert(fname != NULL);
if ((p = strrchr(fname, '.'))) {
*p++ = '\0';
ext = p;
......@@ -1028,14 +1027,6 @@ static switch_status_t parse_record(const char *tag_name, client_t *client, swit
}
}
if (loops_) {
loops = atoi(loops_);
if (loops < 0) {
loops = -1;
}
}
if (digit_timeout_) {
tmp = atol(digit_timeout_);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论