]> 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:26:06 +0000 (08:26 -0700)
ext/intl/locale/locale_methods.c

index 1c5e95bf5f93bc7212e720b36978e8bd82abba82..536792e8533a20d95f7f67a97518233e4910ec8f 100644 (file)
@@ -1203,14 +1203,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 =  '_';