diff options
author | antirez <antirez@gmail.com> | 2020-04-16 16:08:37 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-04-16 16:08:37 +0200 |
commit | 37b135a4000ae2a83afd5d0d59022c6b868cd001 (patch) | |
tree | 193a8a9db84ee001b0f9642c039d8d829827c75d /src | |
parent | c9388ecc73c64491b0c5aef2c6a65068ddd6b2c7 (diff) | |
download | redis-37b135a4000ae2a83afd5d0d59022c6b868cd001.tar.gz |
Update SDS to latest version.
Diffstat (limited to 'src')
-rw-r--r-- | src/sds.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -97,11 +97,11 @@ sds sdsnewlen(const void *init, size_t initlen) { unsigned char *fp; /* flags pointer. */ sh = s_malloc(hdrlen+initlen+1); + if (sh == NULL) return NULL; if (init==SDS_NOINIT) init = NULL; else if (!init) memset(sh, 0, hdrlen+initlen+1); - if (sh == NULL) return NULL; s = (char*)sh+hdrlen; fp = ((unsigned char*)s)-1; switch(type) { |