Further simplify the code.

Submitted by:	Christoph Mallon <christoph.mallon gmx.de>
This commit is contained in:
delphij 2008-10-19 09:10:44 +00:00
parent f0bd6304a2
commit 84a6bd24ee

View File

@ -45,17 +45,8 @@ strxfrm(char * __restrict dest, const char * __restrict src, size_t len)
return 0;
}
if (__collate_load_error) {
slen = strlen(src);
if (len > 0) {
if (slen < len)
strcpy(dest, src);
else {
strlcpy(dest, src, len);
}
}
return slen;
}
if (__collate_load_error)
return strlcpy(dest, src, len);
slen = 0;
prim = sec = 0;