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
62e6f6c2
Commit
62e6f6c2
authored
Jul 27, 2011
by
Pieter Noordhuis
Committed by
antirez
Jul 27, 2011
Browse files
Fix adding bulk reply when getcwd fails
parent
33d2761b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/config.c
View file @
62e6f6c2
...
...
@@ -483,12 +483,11 @@ void configGetCommand(redisClient *c) {
if
(
stringmatch
(
pattern
,
"dir"
,
0
))
{
char
buf
[
1024
];
addReplyBulkCString
(
c
,
"dir"
);
if
(
getcwd
(
buf
,
sizeof
(
buf
))
==
NULL
)
{
if
(
getcwd
(
buf
,
sizeof
(
buf
))
==
NULL
)
buf
[
0
]
=
'\0'
;
}
else
{
addReplyBulkCString
(
c
,
"dir"
);
addReplyBulkCString
(
c
,
buf
);
}
matches
++
;
}
if
(
stringmatch
(
pattern
,
"dbfilename"
,
0
))
{
...
...
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