summaryrefslogtreecommitdiff
path: root/ext/intl/locale/locale_methods.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@lerdorf.com>2015-03-21 08:23:20 -0700
committerRasmus Lerdorf <rasmus@lerdorf.com>2015-03-21 08:26:06 -0700
commitf01071f55f0128a920c9625f88ef4ffe35922298 (patch)
tree0e3cc14af534b44cf425a097e6f62358b54be9af /ext/intl/locale/locale_methods.c
parenta86a871bd0a2dce54e59480d2ae0a0d71e363a92 (diff)
downloadphp-git-f01071f55f0128a920c9625f88ef4ffe35922298.tar.gz
Remove extraneous strlen() call
Diffstat (limited to 'ext/intl/locale/locale_methods.c')
-rw-r--r--ext/intl/locale/locale_methods.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/intl/locale/locale_methods.c b/ext/intl/locale/locale_methods.c
index 1c5e95bf5f..536792e853 100644
--- a/ext/intl/locale/locale_methods.c
+++ b/ext/intl/locale/locale_methods.c
@@ -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 = '_';