Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88efaa8

Browse files
michael-grunderyatsukhnenko
authored andcommitted
Fixes potential (but unreported) segfault in release code.
1 parent 217b92f commit 88efaa8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ PHP_REDIS_API void redis_type_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *
904904
PHP_REDIS_API void redis_info_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx) {
905905
char *response;
906906
int response_len;
907-
zval zv, *z_ret = &zv;
907+
zval zv = {0}, *z_ret = &zv;
908908

909909
/* Read bulk response */
910910
if ((response = redis_sock_read(redis_sock, &response_len TSRMLS_CC)) == NULL) {

0 commit comments

Comments
 (0)