]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Hide warning about sometimes initialized variable
authorTravis Cross <tc@traviscross.com>
Sat, 12 Apr 2014 04:44:45 +0000 (04:44 +0000)
committerTravis Cross <tc@traviscross.com>
Sat, 19 Apr 2014 02:51:29 +0000 (02:51 +0000)
The rc variable here was always initialized but the compiler couldn't
see that because of the lack of an unconditional else clause.

src/mod/applications/mod_memcache/mod_memcache.c

index 740fe54954baf1a1189a34691ee6aa83a80bcaa4..0806e7f0b4f05f7085ef83fcb6f9ea0ed1acd782 100755 (executable)
@@ -154,7 +154,7 @@ SWITCH_STANDARD_API(memcache_function)
        uint32_t flags = 0;
        unsigned int server_count = 0;
 
-       memcached_return rc;
+       memcached_return rc = 0;
        memcached_st *memcached = NULL;
        memcached_stat_st *stat = NULL;
        memcached_server_st *server_list;