Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
84243064
Commit
84243064
authored
Feb 27, 2020
by
antirez
Browse files
Remove useless comment from enumConfigSet().
parent
dafb94db
Changes
1
Show whitespace changes
Inline
Side-by-side
src/config.c
View file @
84243064
...
...
@@ -1674,7 +1674,6 @@ static int enumConfigSet(typeData data, sds value, int update, char **err) {
enumerr
[
sdslen
(
enumerr
)
-
2
]
=
'\0'
;
strncpy
(
loadbuf
,
enumerr
,
LOADBUF_SIZE
);
/* strncpy does not if null terminate if source string length is >= destination buffer. */
loadbuf
[
LOADBUF_SIZE
-
1
]
=
'\0'
;
sdsfree
(
enumerr
);
...
...
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