Merge pull request #441 from signalwire/mod_memcache

[mod_memcache] scan-build: Fix "Uninitialized argument value"
This commit is contained in:
Andrey Volk 2020-02-26 23:59:24 +04:00 committed by GitHub
commit b099d0383d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ SWITCH_STANDARD_API(memcache_function)
}
switch_safe_free(val);
} else if ((!strcasecmp(subcmd, "increment") || !strcasecmp(subcmd, "decrement")) && argc > 1) {
uint64_t ivalue;
uint64_t ivalue = 0;
unsigned int offset = 1;
switch_bool_t increment = SWITCH_TRUE;
char *svalue = NULL;