Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
96b5d05f
Commit
96b5d05f
authored
Dec 14, 2010
by
antirez
Browse files
initialized a few vars just to avoid warnings, not a real problem.
parent
f858c11d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_hash.c
View file @
96b5d05f
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment