* 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) {
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) {