summaryrefslogtreecommitdiff
path: root/src/sds.h
diff options
context:
space:
mode:
authororanagra <oran@redislabs.com>2017-02-23 03:04:08 -0800
committeroranagra <oran@redislabs.com>2017-02-23 03:04:08 -0800
commitf86df924b01db43eb68f5c4b4cac4c44c1507390 (patch)
tree02a65411a362442f39d8f450ac4dc93049a96a89 /src/sds.h
parent95883313b5a405916fabed34c3af290d6072c817 (diff)
downloadredis-f86df924b01db43eb68f5c4b4cac4c44c1507390.tar.gz
add SDS_NOINIT option to sdsnewlen to avoid unnecessary memsets.
this commit also contains small bugfix in rdbLoadLzfStringObject a bug that currently has no implications.
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 394f8b52e..16e85ce04 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>