Skip to content

Commit

Permalink
initialized a few vars just to avoid warnings, not a real problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Dec 14, 2010
1 parent f858c11 commit 96b5d05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/t_hash.c
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 96b5d05

Please sign in to comment.