com php-src: Remove extraneous strlen() call: ext/intl/locale/l ocale_methods.c
| From: | Rasmus Lerdorf | Date: | Sat, 21 Mar 2015 15:28:40 +0000 |
| Subject: | com php-src: Remove extraneous strlen() call: ext/intl/locale/l ocale_methods.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85752@lists.php.net to get a copy of this message | ||
Commit: 7fce3607ea827d7e50bb4a8f0d1f1ecd71382c24
Author: Rasmus Lerdorf <rasmus@lerdorf.com> Sat, 21 Mar 2015 08:23:20 -0700
Parents: a73d0b0fb3ee250dc9955dbf44ab514ccd48457e
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7fce3607ea827d7e50bb4a8f0d1f1ecd71382c24
Log:
Remove extraneous strlen() call
Changed paths:
M ext/intl/locale/locale_methods.c
Diff:
diff --git a/ext/intl/locale/locale_methods.c b/ext/intl/locale/locale_methods.c
index f1e1849..c8159bc 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 = '_';