projects
/
redis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Contextualize comment.
[redis.git]
/
src
/
t_zset.c
diff --git
a/src/t_zset.c
b/src/t_zset.c
index d2535c72794baa95cbbd77048f8e78cb7489ef5f..d482d4c2f743a199ee41af3e82a86dd8e8544848 100644
(file)
--- a/
src/t_zset.c
+++ b/
src/t_zset.c
@@
-502,7
+502,7
@@
int zzlIsInRange(unsigned char *zl, zrangespec *range) {
return 0;
p = ziplistIndex(zl,-1); /* Last score. */
return 0;
p = ziplistIndex(zl,-1); /* Last score. */
- redisAssert(p != NULL);
+ if (p == NULL) return 0; /* Empty sorted set */
score = zzlGetScore(p);
if (!zslValueGteMin(score,range))
return 0;
score = zzlGetScore(p);
if (!zslValueGteMin(score,range))
return 0;
@@
-1254,7
+1254,7
@@
int zuiNext(zsetopsrc *op, zsetopval *val) {
if (val->flags & OPVAL_DIRTY_ROBJ)
decrRefCount(val->ele);
if (val->flags & OPVAL_DIRTY_ROBJ)
decrRefCount(val->ele);
-
bzero(val
,sizeof(zsetopval));
+
memset(val,0
,sizeof(zsetopval));
if (op->type == REDIS_SET) {
iterset *it = &op->iter.set;
if (op->type == REDIS_SET) {
iterset *it = &op->iter.set;