summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2018-01-17 10:45:11 +0100
committerGitHub <noreply@github.com>2018-01-17 10:45:11 +0100
commit81401878de92d15f0d3529144e27a1106ad489c2 (patch)
treea6527f3c8479fc810e3dd3ef446f83db39181778
parentb23927b240c68139700b7ac4bd4ce9370503aa60 (diff)
parent1e0e1685702d613fbad281c2db35540ad21d5887 (diff)
downloadredis-81401878de92d15f0d3529144e27a1106ad489c2.tar.gz
Merge pull request #4609 from Qinch/unstable
fix assert problem in ZIP_DECODE_PREVLENSIZE macro
-rw-r--r--src/ziplist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ziplist.c b/src/ziplist.c
index e407937ff..4d2ee821e 100644
--- a/src/ziplist.c
+++ b/src/ziplist.c
@@ -440,7 +440,7 @@ unsigned int zipStorePrevEntryLength(unsigned char *p, unsigned int len) {
if ((prevlensize) == 1) { \
(prevlen) = (ptr)[0]; \
} else if ((prevlensize) == 5) { \
- assert(sizeof((prevlensize)) == 4); \
+ assert(sizeof((prevlen)) == 4); \
memcpy(&(prevlen), ((char*)(ptr)) + 1, 4); \
memrev32ifbe(&prevlen); \
} \