Updated release notes
[awesomized/libmemcached] / libmemcached / memcached_storage.c
index ea8b1d249b98d5d1189d4d151bf5191120f3f5b6..97ca33cc50a7a71519452dcc8e988d2b3a55bac4 100644 (file)
@@ -341,7 +341,9 @@ memcached_return memcached_cas_by_key(memcached_st *ptr,
 
 static inline uint8_t get_com_code(memcached_storage_action verb, bool noreply)
 {
-   uint8_t ret;
+  /* 0 isn't a value we want, but GCC 4.2 seems to think ret can otherwise
+   * be used uninitialized in this function. FAIL */
+  uint8_t ret= 0;
 
   if (noreply)
     switch (verb)