diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2019-02-22 10:09:49 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2019-02-22 10:09:49 +0300 |
commit | 0433dc03e87589c3a8b3bb7e630769ae02b78537 (patch) | |
tree | cb624d3c7b1ea1235be4de85b56fe4802b5834af /library.c | |
parent | 6dedf04bb02d414c77133c4d8aabcc399ec99322 (diff) |
Issue #1514
`sizeof(void *)` isn't standard so change it to `sizeof(char *)`
Diffstat (limited to 'library.c')
-rw-r--r-- | library.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1895,8 +1895,8 @@ redis_sock_disconnect(RedisSock *redis_sock, int force TSRMLS_DC) zend_resource *le = zend_hash_find_ptr(&EG(persistent_list), persistent_id); if (!le) { zend_llist *l = pecalloc(1, sizeof(*l) + sizeof(*le), 1); - zend_llist_init(l, sizeof(void *), NULL, 1); - le = (void *)l + sizeof(*l); + zend_llist_init(l, sizeof(php_stream *), NULL, 1); + le = (zend_resource *)((char *)l + sizeof(*l)); le->type = le_redis_pconnect; le->ptr = l; zend_hash_str_update_mem(&EG(persistent_list), ZSTR_VAL(persistent_id), ZSTR_LEN(persistent_id), le, sizeof(*le)); |