Uses addReplyBulkCString
Signed-off-by: Itamar Haber <itamar@redislabs.com>
This commit is contained in:
parent
26d9d4ec2c
commit
c184b32d4c
@ -1249,7 +1249,7 @@ int RM_ReplyWithStringBuffer(RedisModuleCtx *ctx, const char *buf, size_t len) {
|
|||||||
int RM_ReplyWithCString(RedisModuleCtx *ctx, const char *buf) {
|
int RM_ReplyWithCString(RedisModuleCtx *ctx, const char *buf) {
|
||||||
client *c = moduleGetReplyClient(ctx);
|
client *c = moduleGetReplyClient(ctx);
|
||||||
if (c == NULL) return REDISMODULE_OK;
|
if (c == NULL) return REDISMODULE_OK;
|
||||||
addReplyBulkCBuffer(c,(char*)buf,strlen(buf));
|
addReplyBulkCString(c,(char*)buf);
|
||||||
return REDISMODULE_OK;
|
return REDISMODULE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user