Skip to content

Commit b509391

Browse files
committed
Fix warning: 'id' may be used uninitialized in this function
1 parent 0c925ce commit b509391

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
@@ -1406,7 +1406,7 @@ PHP_REDIS_API int
14061406
redis_read_xclaim_response(RedisSock *redis_sock, int count, zval *rv TSRMLS_DC) {
14071407
zval zv, *z_msg = &zv;
14081408
REDIS_REPLY_TYPE type;
1409-
char *id;
1409+
char *id = NULL;
14101410
int i, fields, idlen;
14111411
long li;
14121412

0 commit comments

Comments
 (0)