Merge pull request #443 from signalwire/mod_callcenter

[mod_callcenter] scan-build: Fix dead initialization.
This commit is contained in:
Andrey Volk 2020-02-27 00:07:37 +04:00 committed by GitHub
commit f90c4b411e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1656,7 +1656,7 @@ end:
static switch_status_t playback_array(switch_core_session_t *session, const char *str) {
switch_status_t status = SWITCH_STATUS_FALSE;
if (str && !strncmp(str, "ARRAY::", 7)) {
char *i = (char*) str + 7, *j = i;
char *i = (char*) str + 7, *j;
while (1) {
if ((j = strstr(i, "::"))) {
*j = 0;