COMP: Avoid double-initialization in KWSys String
The KWSys String implementation of strcasecmp initialized 'result' immediately before assigning to it. Borland produces a warning in this case, so this commit removes the extra initialization.
This commit is contained in:
parent
590a0c809e
commit
74c385e702
|
@ -86,7 +86,7 @@ int kwsysString_strcasecmp(const char* lhs, const char* rhs)
|
|||
const char* const lower = kwsysString_strcasecmp_tolower;
|
||||
unsigned char const* us1 = (unsigned char const*)lhs;
|
||||
unsigned char const* us2 = (unsigned char const*)rhs;
|
||||
int result = 0;
|
||||
int result;
|
||||
while((result = lower[*us1] - lower[*us2++], result == 0) && *us1++)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue