From: Rasmus Lerdorf Date: Sat, 21 Mar 2015 15:23:20 +0000 (-0700) Subject: Remove extraneous strlen() call X-Git-Tag: php-5.6.8RC1~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fce3607ea827d7e50bb4a8f0d1f1ecd71382c24;p=php Remove extraneous strlen() call --- diff --git a/ext/intl/locale/locale_methods.c b/ext/intl/locale/locale_methods.c index f1e184914d..c8159bcd5a 100644 --- a/ext/intl/locale/locale_methods.c +++ b/ext/intl/locale/locale_methods.c @@ -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 = '_';