summaryrefslogtreecommitdiff
path: root/src/sds.h
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2018-02-27 04:04:32 -0800
committerGitHub <noreply@github.com>2018-02-27 04:04:32 -0800
commitd8830200b48b7f0b050e56f0c4e570311bcf7e3e (patch)
treefcac8c4349e5bd25676f97bfe8f1b21f0fc95a8e /src/sds.h
parent813960dbdd86b88b509b2946dbaa023e0ae8b1b9 (diff)
parentf86df924b01db43eb68f5c4b4cac4c44c1507390 (diff)
downloadredis-d8830200b48b7f0b050e56f0c4e570311bcf7e3e.tar.gz
Merge pull request #3828 from oranagra/sdsnewlen_pr
add SDS_NOINIT option to sdsnewlen to avoid unnecessary memsets.
Diffstat (limited to 'src/sds.h')
-rw-r--r--src/sds.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sds.h b/src/sds.h
index a5a41f20e..1bdb60dec 100644
--- a/src/sds.h
+++ b/src/sds.h
@@ -34,6 +34,7 @@
#define __SDS_H
#define SDS_MAX_PREALLOC (1024*1024)
+const char *SDS_NOINIT;
#include <sys/types.h>
#include <stdarg.h>