summaryrefslogtreecommitdiff
path: root/src/ziplist.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-10-23 10:57:01 +0200
committerantirez <antirez@gmail.com>2011-10-23 10:57:01 +0200
commitf013f40003e5709203e31dcba4485f8342e2cccc (patch)
treeff1f3c1d69a495122dc4c4bf927f54996a3c56d6 /src/ziplist.c
parent9e6a9f30ea72445740a26599d50ed63a14a59f7f (diff)
downloadredis-f013f40003e5709203e31dcba4485f8342e2cccc.tar.gz
Fixed a few warnings compiling on Linux.
Diffstat (limited to 'src/ziplist.c')
-rw-r--r--src/ziplist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ziplist.c b/src/ziplist.c
index f5f9e9a64..639e4b61e 100644
--- a/src/ziplist.c
+++ b/src/ziplist.c
@@ -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. */