Skip to content

Commit d74b0d2

Browse files
committed
Fix warning: 'klen' may be used uninitialized in this function
1 parent 47ddcf7 commit d74b0d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ PHPAPI void redis_client_list_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *red
743743
char *p = resp, *lpos = resp, *kpos = NULL, *vpos = NULL, *p2, *key, *value;
744744

745745
// Key length, done flag
746-
int klen, done = 0, is_numeric;
746+
int klen = 0, done = 0, is_numeric;
747747

748748
// While we've got more to parse
749749
while(!done) {

0 commit comments

Comments
 (0)