Remove extraneous strlen() call

This commit is contained in:
Rasmus Lerdorf 2015-03-21 08:23:20 -07:00
parent b98a486606
commit d33636f764

View 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 = '_';