Skip to content

Commit

Permalink
Removing redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
link04 committed Nov 6, 2024
1 parent c26eda0 commit 2f104b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zend_abstract_interface/config/config_decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static bool zai_config_decode_map(zai_str value, zval *decoded_value, bool persi

zval val;
if (value_end) {
size_t value_len = value_end ? (value_end - value_start + 1) : 0;
size_t value_len = value_end - value_start + 1;
ZVAL_NEW_STR(&val, zend_string_init(value_start, value_len, persistent));
} else {
if (persistent) {
Expand Down

0 comments on commit 2f104b2

Please sign in to comment.