Merge pull request #3336 from yossigo/create_string_from_string

Add RedisModule_CreateStringFromString().
This commit is contained in:
Salvatore Sanfilippo
2016-06-23 16:16:28 +02:00
committed by GitHub
5 changed files with 26 additions and 2 deletions

View File

@ -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);