Commit 6c8b0ce2 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 9c3340c9
......@@ -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++)
{
}
......
......@@ -7,4 +7,4 @@ SET(KWSYS_DATE_STAMP_YEAR 2009)
SET(KWSYS_DATE_STAMP_MONTH 06)
# KWSys version date day component. Format is DD.
SET(KWSYS_DATE_STAMP_DAY 11)
SET(KWSYS_DATE_STAMP_DAY 12)
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