From: Sascha Schumann Date: Sat, 4 May 2002 17:38:45 +0000 (+0000) Subject: block_ended/opposite_target were set but never used X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~241 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea84524bc269878202661728918788a20e3f670b;p=php block_ended/opposite_target were set but never used --- diff --git a/ext/standard/string.c b/ext/standard/string.c index fd409ee8ad..017a26a0ee 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2800,9 +2800,8 @@ PHP_FUNCTION(str_replace) static void php_hebrev(INTERNAL_FUNCTION_PARAMETERS, int convert_newlines) { zval **str, **max_chars_per_line; - char *heb_str, *tmp, *target, *opposite_target, *broken_str; + char *heb_str, *tmp, *target, *broken_str; int block_start, block_end, block_type, block_length, i; - int block_ended; long max_chars=0; int begin, end, char_count, orig_begin; @@ -2833,11 +2832,9 @@ static void php_hebrev(INTERNAL_FUNCTION_PARAMETERS, int convert_newlines) tmp = Z_STRVAL_PP(str); block_start=block_end=0; - block_ended=0; heb_str = (char *) emalloc(Z_STRLEN_PP(str)+1); target = heb_str+Z_STRLEN_PP(str); - opposite_target = heb_str; *target = 0; target--;