]> granicus.if.org Git - php/commitdiff
remove unused var, make string.c compilation zero warnings
authorMárcio Almada <marcio3w@gmail.com>
Sat, 24 Jan 2015 03:26:01 +0000 (00:26 -0300)
committerMárcio Almada <marcio3w@gmail.com>
Sat, 24 Jan 2015 03:26:01 +0000 (00:26 -0300)
ext/standard/string.c

index d6c2a6c3da1545b7cd31a7a40ceb89d6cb980daf..e22dba3967fcda1e05e7745d1417dfee769033ba 100644 (file)
@@ -3145,7 +3145,6 @@ static zend_string* php_char_to_str_ex(zend_string *str, char from, char *to, si
 {
        zend_string *result;
        size_t char_count = 0;
-       size_t replaced = 0;
        char lc_from = 0;
        char *source, *target, *source_end= str->val + str->len;
 
@@ -3195,7 +3194,6 @@ static zend_string* php_char_to_str_ex(zend_string *str, char from, char *to, si
        } else {
                for (source = str->val; source < source_end; source++) {
                        if (tolower(*source) == lc_from) {
-                               replaced = 1;
                                if (replace_count) {
                                        *replace_count += 1;
                                }