]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_memcache] scan-build: Fix "Uninitialized argument value" 441/head
authorAndrey Volk <andywolk@gmail.com>
Wed, 26 Feb 2020 11:26:25 +0000 (15:26 +0400)
committerAndrey Volk <andywolk@gmail.com>
Wed, 26 Feb 2020 11:26:25 +0000 (15:26 +0400)
src/mod/applications/mod_memcache/mod_memcache.c

index c318901b6a443210c0f988205a94502bbc30378e..c81b345c7a96d4ebcf78e8b79127dea4e5cf1464 100644 (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;