Skip to content

Commit 4aa86ed

Browse files
committed
Fix(property): return val
1 parent c4e4adf commit 4aa86ed

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

include/excel.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818
#define V_XLS_COF "config"
1919
#define V_XLS_PAT "path"
2020

21-
#define GET_CONFIG_PATH(dir_path_res, class_name, object) \
22-
do { \
23-
zval *_config = zend_read_property(class_name, object, ZEND_STRL(V_XLS_COF), 0, NULL); \
24-
(dir_path_res) = zend_hash_str_find(Z_ARRVAL_P(_config), ZEND_STRL(V_XLS_PAT)); \
21+
#define GET_CONFIG_PATH(dir_path_res, class_name, object) \
22+
do { \
23+
zval rv; \
24+
zval *_config = zend_read_property(class_name, object, ZEND_STRL(V_XLS_COF), 0, &rv); \
25+
(dir_path_res) = zend_hash_str_find(Z_ARRVAL_P(_config), ZEND_STRL(V_XLS_PAT)); \
2526
} while(0)
2627

2728
extern zend_class_entry *vtiful_xls_ce;

0 commit comments

Comments
 (0)