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
91690a29
Unverified
Commit
91690a29
authored
Jan 03, 2021
by
Oran Agra
Committed by
GitHub
Jan 03, 2021
Browse files
Fix uninitialized variable in new errorstats commit (#8280)
parent
7896debe
Changes
1
Show whitespace changes
Inline
Side-by-side
src/module.c
View file @
91690a29
...
@@ -851,6 +851,8 @@ int RM_CreateCommand(RedisModuleCtx *ctx, const char *name, RedisModuleCmdFunc c
...
@@ -851,6 +851,8 @@ int RM_CreateCommand(RedisModuleCtx *ctx, const char *name, RedisModuleCmdFunc c
cp
->
rediscmd
->
keystep
=
keystep
;
cp
->
rediscmd
->
keystep
=
keystep
;
cp
->
rediscmd
->
microseconds
=
0
;
cp
->
rediscmd
->
microseconds
=
0
;
cp
->
rediscmd
->
calls
=
0
;
cp
->
rediscmd
->
calls
=
0
;
cp
->
rediscmd
->
rejected_calls
=
0
;
cp
->
rediscmd
->
failed_calls
=
0
;
dictAdd
(
server
.
commands
,
sdsdup
(
cmdname
),
cp
->
rediscmd
);
dictAdd
(
server
.
commands
,
sdsdup
(
cmdname
),
cp
->
rediscmd
);
dictAdd
(
server
.
orig_commands
,
sdsdup
(
cmdname
),
cp
->
rediscmd
);
dictAdd
(
server
.
orig_commands
,
sdsdup
(
cmdname
),
cp
->
rediscmd
);
cp
->
rediscmd
->
id
=
ACLGetCommandID
(
cmdname
);
/* ID used for ACL. */
cp
->
rediscmd
->
id
=
ACLGetCommandID
(
cmdname
);
/* ID used for ACL. */
...
...
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