Commit 74c385e7 authored by Brad King's avatar Brad King
Browse files

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.
parent 590a0c80
......@@ -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++)
{
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment