[mod_abstraction] scan-build: Fix dead assignment.

This commit is contained in:
Andrey Volk 2020-02-26 17:02:26 +04:00
parent 6decc21669
commit c6d050d87d
1 changed files with 1 additions and 2 deletions

View File

@ -63,7 +63,7 @@ SWITCH_STANDARD_API(api_abstraction_function)
const char *destination = switch_xml_attr_soft(x_api, "destination");
const char *arguments = switch_xml_attr_soft(x_api, "argument");
int proceed = 0;
int proceed;
switch_regex_t *re = NULL;
int ovector[30];
@ -75,7 +75,6 @@ SWITCH_STANDARD_API(api_abstraction_function)
uint32_t len = (uint32_t) (strlen(cmd) + strlen(arguments) + 10) * proceed;
if (!(substituted = malloc(len))) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_CRIT, "Memory Error!\n");
proceed = 0;
goto end;
}
memset(substituted, 0, len);