mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Fix occasional RM_OpenKey() crashes.
This commit is contained in:
parent
0b4b7ebd95
commit
a8e2034548
@ -1047,6 +1047,7 @@ void *RM_OpenKey(RedisModuleCtx *ctx, robj *keyname, int mode) {
|
||||
kp->value = value;
|
||||
kp->iter = NULL;
|
||||
kp->mode = mode;
|
||||
kp->ztype = REDISMODULE_ZSET_RANGE_NONE;
|
||||
RM_ZsetRangeStop(kp);
|
||||
autoMemoryAdd(ctx,REDISMODULE_AM_KEY,kp);
|
||||
return (void*)kp;
|
||||
|
Loading…
Reference in New Issue
Block a user