Commit 96b5d05f authored by antirez's avatar antirez
Browse files

initialized a few vars just to avoid warnings, not a real problem.

parent f858c11d
...@@ -219,8 +219,8 @@ int hashTypeCurrent(hashTypeIterator *hi, int what, robj **objval, unsigned char ...@@ -219,8 +219,8 @@ int hashTypeCurrent(hashTypeIterator *hi, int what, robj **objval, unsigned char
* reference is retained. */ * reference is retained. */
robj *hashTypeCurrentObject(hashTypeIterator *hi, int what) { robj *hashTypeCurrentObject(hashTypeIterator *hi, int what) {
robj *obj; robj *obj;
unsigned char *v; unsigned char *v = NULL;
unsigned int vlen; unsigned int vlen = 0;
int encoding = hashTypeCurrent(hi,what,&obj,&v,&vlen); int encoding = hashTypeCurrent(hi,what,&obj,&v,&vlen);
if (encoding == REDIS_ENCODING_HT) { if (encoding == REDIS_ENCODING_HT) {
...@@ -430,8 +430,8 @@ void genericHgetallCommand(redisClient *c, int flags) { ...@@ -430,8 +430,8 @@ void genericHgetallCommand(redisClient *c, int flags) {
hi = hashTypeInitIterator(o); hi = hashTypeInitIterator(o);
while (hashTypeNext(hi) != REDIS_ERR) { while (hashTypeNext(hi) != REDIS_ERR) {
robj *obj; robj *obj;
unsigned char *v; unsigned char *v = NULL;
unsigned int vlen; unsigned int vlen = 0;
int encoding; int encoding;
if (flags & REDIS_HASH_KEY) { if (flags & REDIS_HASH_KEY) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment