Add RedisModule_CreateStringFromString().

This commit is contained in:
Yossi Gottlieb
2016-06-22 20:57:24 +03:00
parent 4e10b08fb3
commit 61172ed01e
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);