]> granicus.if.org Git - php/commitdiff
Remove extraneous strlen() call
authorRasmus Lerdorf <rasmus@lerdorf.com>
Sat, 21 Mar 2015 15:23:20 +0000 (08:23 -0700)
committerRasmus Lerdorf <rasmus@lerdorf.com>
Sat, 21 Mar 2015 15:29:12 +0000 (08:29 -0700)
ext/intl/locale/locale_methods.c

index f1e184914d67eaac1ecb53b25163028e8e9aa40e..c8159bcd5adedc25595fad8ccc7d96152f99ca04 100644 (file)
@@ -1194,14 +1194,12 @@ static int strToMatch(const char* str ,char *retstr)
        char*   anchor  = NULL;
        const char*     anchor1 = NULL;
        int     result  = 0;
-       int     len     = 0;
 
     if( (!str) || str[0] == '\0'){
         return result;
     } else {
        anchor = retstr;
        anchor1 = str;
-        len = strlen(str);
         while( (*str)!='\0' ){
                if( *str == '-' ){
                        *retstr =  '_';