Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-08-02 13:02:07 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-08-02 13:20:30 +0300
commit4e32254ec22c37d74a3a22a03a7cf981c1126b60 (patch)
treecd6ea53db874afcff400ace99421e4f87032961b /cluster_library.c
parent7c140714e3d3083162fdaea09fbd7e080ee156ac (diff)
Use ZSTR_VAL and ZSTR_LEN macroses to access zend_string fields
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cluster_library.c b/cluster_library.c
index 1b4eb35b..987142e8 100644
--- a/cluster_library.c
+++ b/cluster_library.c
@@ -2431,7 +2431,7 @@ int mbulk_resp_loop_zipdbl(RedisSock *redis_sock, zval *z_result,
zval zv, *z = &zv;
if (redis_unserialize(redis_sock,key,key_len, z TSRMLS_CC)) {
zend_string *zstr = zval_get_string(z);
- add_assoc_double_ex(z_result, zstr->val, zstr->len, atof(line));
+ add_assoc_double_ex(z_result, ZSTR_VAL(zstr), ZSTR_LEN(zstr), atof(line));
zend_string_release(zstr);
zval_dtor(z);
} else {