Merge pull request #933 from RockLi/unstable

retval doesn't initalized
This commit is contained in:
Salvatore Sanfilippo 2013-02-05 01:48:49 -08:00
commit 88c6d57184

View File

@ -491,7 +491,7 @@ void srandmemberWithCountCommand(redisClient *c) {
/* Add all the elements into the temporary dictionary. */
si = setTypeInitIterator(set);
while((encoding = setTypeNext(si,&ele,&llele)) != -1) {
int retval;
int retval = DICT_ERR;
if (encoding == REDIS_ENCODING_INTSET) {
retval = dictAdd(d,createStringObjectFromLongLong(llele),NULL);