]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_abstraction] scan-build: Fix dead assignment. 444/head
authorAndrey Volk <andywolk@gmail.com>
Wed, 26 Feb 2020 13:02:26 +0000 (17:02 +0400)
committerAndrey Volk <andywolk@gmail.com>
Wed, 26 Feb 2020 13:02:26 +0000 (17:02 +0400)
src/mod/applications/mod_abstraction/mod_abstraction.c

index bb24ca4c75b3da5aeb320f69af95f5deedf9d401..11144462ecf14413dc4d8d4796c5cc13bbfedf8d 100644 (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);