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
21b3ff9b
Commit
21b3ff9b
authored
Jan 18, 2013
by
Salvatore Sanfilippo
Browse files
Merge pull request #893 from nparry/fix-redis-cli-rdb
redis-cli --rdb fails if server sends a ping
parents
a0c24821
1920cab3
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
21b3ff9b
...
...
@@ -958,8 +958,8 @@ unsigned long long sendSync(int fd) {
fprintf(stderr,"Error reading bulk length while SYNCing\n");
exit(1);
}
if (*p == '\n') break;
p++;
if (*p == '\n'
&& p != buf
) break;
if (*p != '\n')
p++;
}
*p = '\0';
if (buf[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