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
0ccbdcee
Commit
0ccbdcee
authored
Apr 16, 2019
by
Itamar Haber
Committed by
antirez
Jul 07, 2019
Browse files
Uses addReplyBulkCString
Signed-off-by:
Itamar Haber
<
itamar@redislabs.com
>
parent
707a59c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
0ccbdcee
...
@@ -1248,7 +1248,7 @@ int RM_ReplyWithStringBuffer(RedisModuleCtx *ctx, const char *buf, size_t len) {
...
@@ -1248,7 +1248,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
;
addReplyBulkC
Buffer
(c,(char*)buf
,strlen(buf)
);
addReplyBulkC
String
(
c
,(
char
*
)
buf
);
return
REDISMODULE_OK
;
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