mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Initialize RedisModuleDigest with zeroes (#8731)
In case the module's digest function doesn't modify 'md' it'll contain garbage and result in wrong DEBUG DIGEST
This commit is contained in:
parent
2c120af61e
commit
68ba4d43ac
@ -249,7 +249,7 @@ void xorObjectDigest(redisDb *db, robj *keyobj, unsigned char *digest, robj *o)
|
||||
}
|
||||
streamIteratorStop(&si);
|
||||
} else if (o->type == OBJ_MODULE) {
|
||||
RedisModuleDigest md;
|
||||
RedisModuleDigest md = {{0},{0}};
|
||||
moduleValue *mv = o->ptr;
|
||||
moduleType *mt = mv->type;
|
||||
moduleInitDigestContext(md);
|
||||
|
Loading…
Reference in New Issue
Block a user