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
6e55e543
Commit
6e55e543
authored
Oct 25, 2013
by
antirez
Browse files
SCAN: remove useless assertion, already enforced by command table.
parent
64722b09
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
6e55e543
...
@@ -337,8 +337,6 @@ void scanCommand(redisClient *c) {
...
@@ -337,8 +337,6 @@ void scanCommand(redisClient *c) {
sds
pat
;
sds
pat
;
int
patlen
,
patnoop
=
1
;
int
patlen
,
patnoop
=
1
;
redisAssert
(
c
->
argc
>=
2
);
/* Use sscanf because we need an *unsigned* long */
/* Use sscanf because we need an *unsigned* long */
rv
=
sscanf
(
c
->
argv
[
1
]
->
ptr
,
"%lu"
,
&
cursor
);
rv
=
sscanf
(
c
->
argv
[
1
]
->
ptr
,
"%lu"
,
&
cursor
);
if
(
rv
!=
1
)
{
if
(
rv
!=
1
)
{
...
...
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