summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2016-06-23 16:16:28 +0200
committerGitHub <noreply@github.com>2016-06-23 16:16:28 +0200
commit28ea585fce601613500f0e36215851d8d88c6228 (patch)
tree03741eaa55e215e01e19146f2c110a529f746b90 /src/object.c
parentc0ca87dcc09212053e4718d9f78a2127ce33ef85 (diff)
parent61172ed01ef3b888d499e191df6bc6408313ae68 (diff)
downloadredis-28ea585fce601613500f0e36215851d8d88c6228.tar.gz
Merge pull request #3336 from yossigo/create_string_from_string
Add RedisModule_CreateStringFromString().
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c
index ab927688b..447e5fc30 100644
--- a/src/object.c
+++ b/src/object.c
@@ -147,7 +147,7 @@ robj *createStringObjectFromLongDouble(long double value, int humanfriendly) {
* will always result in a fresh object that is unshared (refcount == 1).
*
* The resulting object always has refcount set to 1. */
-robj *dupStringObject(robj *o) {
+robj *dupStringObject(const robj *o) {
robj *d;
serverAssert(o->type == OBJ_STRING);