diff options
author | antirez <antirez@gmail.com> | 2011-10-23 10:57:01 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-10-23 10:57:01 +0200 |
commit | f013f40003e5709203e31dcba4485f8342e2cccc (patch) | |
tree | ff1f3c1d69a495122dc4c4bf927f54996a3c56d6 /src/ziplist.c | |
parent | 9e6a9f30ea72445740a26599d50ed63a14a59f7f (diff) | |
download | redis-f013f40003e5709203e31dcba4485f8342e2cccc.tar.gz |
Fixed a few warnings compiling on Linux.
Diffstat (limited to 'src/ziplist.c')
-rw-r--r-- | src/ziplist.c | 4 |
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. */ |