[mod_abstraction] scan-build: Fix dead assignment.
This commit is contained in:
parent
6decc21669
commit
c6d050d87d
|
@ -63,7 +63,7 @@ SWITCH_STANDARD_API(api_abstraction_function)
|
||||||
const char *destination = switch_xml_attr_soft(x_api, "destination");
|
const char *destination = switch_xml_attr_soft(x_api, "destination");
|
||||||
const char *arguments = switch_xml_attr_soft(x_api, "argument");
|
const char *arguments = switch_xml_attr_soft(x_api, "argument");
|
||||||
|
|
||||||
int proceed = 0;
|
int proceed;
|
||||||
switch_regex_t *re = NULL;
|
switch_regex_t *re = NULL;
|
||||||
int ovector[30];
|
int ovector[30];
|
||||||
|
|
||||||
|
@ -75,7 +75,6 @@ SWITCH_STANDARD_API(api_abstraction_function)
|
||||||
uint32_t len = (uint32_t) (strlen(cmd) + strlen(arguments) + 10) * proceed;
|
uint32_t len = (uint32_t) (strlen(cmd) + strlen(arguments) + 10) * proceed;
|
||||||
if (!(substituted = malloc(len))) {
|
if (!(substituted = malloc(len))) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_CRIT, "Memory Error!\n");
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_CRIT, "Memory Error!\n");
|
||||||
proceed = 0;
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
memset(substituted, 0, len);
|
memset(substituted, 0, len);
|
||||||
|
|
Loading…
Reference in New Issue