Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c184b32d
Commit
c184b32d
authored
Apr 16, 2019
by
Itamar Haber
Browse files
Uses addReplyBulkCString
Signed-off-by:
Itamar Haber
<
itamar@redislabs.com
>
parent
26d9d4ec
Changes
1
Show whitespace changes
Inline
Side-by-side
src/module.c
View file @
c184b32d
...
...
@@ -1249,7 +1249,7 @@ int RM_ReplyWithStringBuffer(RedisModuleCtx *ctx, const char *buf, size_t len) {
int RM_ReplyWithCString(RedisModuleCtx *ctx, const char *buf) {
client *c = moduleGetReplyClient(ctx);
if (c == NULL) return REDISMODULE_OK;
addReplyBulkC
Buffer
(c,(char*)buf
,strlen(buf)
);
addReplyBulkC
String
(c,(char*)buf);
return REDISMODULE_OK;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment