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
hiredis
Commits
e73289a5
Commit
e73289a5
authored
Nov 26, 2010
by
Pieter Noordhuis
Browse files
Use r->len in another spot
parent
e24023a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
hiredis.c
View file @
e73289a5
...
...
@@ -157,7 +157,7 @@ static void *createNilObject(const redisReadTask *task) {
static
char
*
readBytes
(
redisReader
*
r
,
unsigned
int
bytes
)
{
char
*
p
;
if
(
sdslen
(
r
->
buf
)
-
r
->
pos
>=
bytes
)
{
if
(
r
->
len
-
r
->
pos
>=
bytes
)
{
p
=
r
->
buf
+
r
->
pos
;
r
->
pos
+=
bytes
;
return
p
;
...
...
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