diff options
author | Anatol Belski <ab@php.net> | 2018-10-14 21:32:35 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2018-10-14 21:35:57 +0200 |
commit | a04cd4b948cc9199e40c2a57708e36ce3df80446 (patch) | |
tree | 9089757fdc03e3ad8fb29eb5584eeefd8998c1d1 /ext/intl/breakiterator/breakiterator_iterators.cpp | |
parent | d7a3edd45db8d91ddf09cba7c594c63e63f62709 (diff) | |
download | php-git-a04cd4b948cc9199e40c2a57708e36ce3df80446.tar.gz |
Remove assignment irrelevant for release build
Diffstat (limited to 'ext/intl/breakiterator/breakiterator_iterators.cpp')
-rw-r--r-- | ext/intl/breakiterator/breakiterator_iterators.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/intl/breakiterator/breakiterator_iterators.cpp b/ext/intl/breakiterator/breakiterator_iterators.cpp index c90300155a..9969561206 100644 --- a/ext/intl/breakiterator/breakiterator_iterators.cpp +++ b/ext/intl/breakiterator/breakiterator_iterators.cpp @@ -168,10 +168,9 @@ static void _breakiterator_parts_move_forward(zend_object_iterator *iter) * No need to do anything, the engine increments ->index */ const char *s = Z_STRVAL(bio->text); - size_t slen = Z_STRLEN(bio->text); zend_string *res; - assert(next <= slen && next >= cur); + assert(next <= Z_STRLEN(bio->text) && next >= cur); res = zend_string_alloc(next - cur, 0); memcpy(ZSTR_VAL(res), &s[cur], ZSTR_LEN(res)); |