From 96b5d05fdea63040036c6ed0ae9b9b1cb94e2fc0 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 14 Dec 2010 16:39:33 +0100 Subject: [PATCH 1/1] initialized a few vars just to avoid warnings, not a real problem. --- src/t_hash.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/t_hash.c b/src/t_hash.c index 838f29dd..488bf6b7 100644 --- a/src/t_hash.c +++ b/src/t_hash.c @@ -219,8 +219,8 @@ int hashTypeCurrent(hashTypeIterator *hi, int what, robj **objval, unsigned char * reference is retained. */ robj *hashTypeCurrentObject(hashTypeIterator *hi, int what) { robj *obj; - unsigned char *v; - unsigned int vlen; + unsigned char *v = NULL; + unsigned int vlen = 0; int encoding = hashTypeCurrent(hi,what,&obj,&v,&vlen); if (encoding == REDIS_ENCODING_HT) { @@ -430,8 +430,8 @@ void genericHgetallCommand(redisClient *c, int flags) { hi = hashTypeInitIterator(o); while (hashTypeNext(hi) != REDIS_ERR) { robj *obj; - unsigned char *v; - unsigned int vlen; + unsigned char *v = NULL; + unsigned int vlen = 0; int encoding; if (flags & REDIS_HASH_KEY) { -- 2.45.2