diff options
author | John Doe <tonglizhei@gmail.com> | 2015-02-17 00:03:21 +0800 |
---|---|---|
committer | Matt Stancliff <matt@genges.com> | 2015-02-17 11:31:08 -0500 |
commit | 395e11255cc924c2ee4cc4ddcbf30d269b193316 (patch) | |
tree | 376e3db1fc34cc226a1063d704de7e6989f4656f /src/quicklist.c | |
parent | cfe5eaaed6c136f34db8ada4a704dc81491e2742 (diff) | |
download | redis-395e11255cc924c2ee4cc4ddcbf30d269b193316.tar.gz |
Fix quicklist Pop() result
Closes #2398
Diffstat (limited to 'src/quicklist.c')
-rw-r--r-- | src/quicklist.c | 2 |
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; |