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
d71c4961
"sdk/esp_iot_sdk_v1.4.0/examples/wps/Makefile" did not exist on "335ea87964cd0b49c4a26e96674b1e8b091c8324"
Commit
d71c4961
authored
May 16, 2018
by
dejun.xdj
Committed by
antirez
May 29, 2018
Browse files
Stop saving auth command in redis-cli history.
parent
fca99e41
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
d71c4961
...
@@ -1399,8 +1399,10 @@ static void repl(void) {
...
@@ -1399,8 +1399,10 @@ static void repl(void) {
while
((
line
=
linenoise
(
context
?
config
.
prompt
:
"not connected> "
))
!=
NULL
)
{
while
((
line
=
linenoise
(
context
?
config
.
prompt
:
"not connected> "
))
!=
NULL
)
{
if
(
line
[
0
]
!=
'\0'
)
{
if
(
line
[
0
]
!=
'\0'
)
{
argv
=
cliSplitArgs
(
line
,
&
argc
);
argv
=
cliSplitArgs
(
line
,
&
argc
);
if
(
history
)
linenoiseHistoryAdd
(
line
);
if
(
strcasecmp
(
argv
[
0
],
"auth"
))
{
if
(
historyfile
)
linenoiseHistorySave
(
historyfile
);
if
(
history
)
linenoiseHistoryAdd
(
line
);
if
(
historyfile
)
linenoiseHistorySave
(
historyfile
);
}
if
(
argv
==
NULL
)
{
if
(
argv
==
NULL
)
{
printf
(
"Invalid argument(s)
\n
"
);
printf
(
"Invalid argument(s)
\n
"
);
...
...
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