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
67eeeb0b
Commit
67eeeb0b
authored
Mar 06, 2018
by
antirez
Browse files
Streams: fix XREAD missing check for NULL object.
parent
8d8755c7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
67eeeb0b
...
...
@@ -1171,7 +1171,7 @@ void xreadCommand(client *c) {
if
(
strcmp
(
c
->
argv
[
i
]
->
ptr
,
"$"
)
==
0
)
{
o
=
lookupKeyRead
(
c
->
db
,
key
);
if
(
checkType
(
c
,
o
,
OBJ_STREAM
))
goto
cleanup
;
if
(
o
&&
checkType
(
c
,
o
,
OBJ_STREAM
))
goto
cleanup
;
if
(
o
)
{
stream
*
s
=
o
->
ptr
;
ids
[
id_idx
]
=
s
->
last_id
;
...
...
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