summaryrefslogtreecommitdiff
path: root/src/quicklist.c
diff options
context:
space:
mode:
authorJohn Doe <tonglizhei@gmail.com>2015-02-17 00:03:21 +0800
committerMatt Stancliff <matt@genges.com>2015-02-17 11:31:08 -0500
commit395e11255cc924c2ee4cc4ddcbf30d269b193316 (patch)
tree376e3db1fc34cc226a1063d704de7e6989f4656f /src/quicklist.c
parentcfe5eaaed6c136f34db8ada4a704dc81491e2742 (diff)
downloadredis-395e11255cc924c2ee4cc4ddcbf30d269b193316.tar.gz
Fix quicklist Pop() result
Closes #2398
Diffstat (limited to 'src/quicklist.c')
-rw-r--r--src/quicklist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicklist.c b/src/quicklist.c
index 6682b2087..d2371a9b5 100644
--- a/src/quicklist.c
+++ b/src/quicklist.c
@@ -1372,7 +1372,7 @@ REDIS_STATIC void *_quicklistSaver(unsigned char *data, unsigned int sz) {
unsigned char *vstr;
if (data) {
vstr = zmalloc(sz);
- memcpy(data, vstr, sz);
+ memcpy(vstr, data, sz);
return vstr;
}
return NULL;