From c6d050d87d26334584d19fe30cac9ae9f3de1afb Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Wed, 26 Feb 2020 17:02:26 +0400 Subject: [PATCH] [mod_abstraction] scan-build: Fix dead assignment. --- src/mod/applications/mod_abstraction/mod_abstraction.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mod/applications/mod_abstraction/mod_abstraction.c b/src/mod/applications/mod_abstraction/mod_abstraction.c index bb24ca4c75..11144462ec 100644 --- a/src/mod/applications/mod_abstraction/mod_abstraction.c +++ b/src/mod/applications/mod_abstraction/mod_abstraction.c @@ -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);