]> git.saurik.com Git - redis.git/blobdiff - src/ziplist.c
Only incremnet stats for key miss/hit when the key is semantically accessed in read...
[redis.git] / src / ziplist.c
index f5f9e9a64aa3cad58c2c8c977893bd4cf5b79837..639e4b61ec3cc9c0e5f742448ff19c3420e5d2be 100644 (file)
@@ -489,7 +489,9 @@ static unsigned char *__ziplistInsert(unsigned char *zl, unsigned char *p, unsig
     size_t offset;
     int nextdiff = 0;
     unsigned char encoding = 0;
-    long long value;
+    long long value = 123456789; /* initialized to avoid warning. Using a value
+                                    that is easy to see if for some reason
+                                    we use it uninitialized. */
     zlentry entry, tail;
 
     /* Find out prevlen for the entry that is inserted. */