Further simplify the code.
Submitted by: Christoph Mallon <christoph.mallon gmx.de>
This commit is contained in:
parent
f0bd6304a2
commit
84a6bd24ee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user