]> git.saurik.com Git - redis.git/blobdiff - src/ziplist.c
Max limit to 10k clients removed, this implements feature request on issue #194
[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. */