libc/locale/collate.c: minor style
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D34140
This commit is contained in:
parent
7bf532c9d4
commit
a8be061167
@ -86,17 +86,21 @@ __collate_load(const char *encoding, __unused locale_t unused)
|
||||
{
|
||||
if (strcmp(encoding, "C") == 0 || strcmp(encoding, "POSIX") == 0 ||
|
||||
strncmp(encoding, "C.", 2) == 0) {
|
||||
return &__xlocale_C_collate;
|
||||
return (&__xlocale_C_collate);
|
||||
}
|
||||
struct xlocale_collate *table = calloc(sizeof(struct xlocale_collate), 1);
|
||||
struct xlocale_collate *table = calloc(sizeof(struct xlocale_collate),
|
||||
1);
|
||||
table->header.header.destructor = destruct_collate;
|
||||
// FIXME: Make sure that _LDP_CACHE is never returned. We should be doing
|
||||
// the caching outside of this section
|
||||
|
||||
/*
|
||||
* FIXME: Make sure that _LDP_CACHE is never returned. We
|
||||
* should be doing the caching outside of this section.
|
||||
*/
|
||||
if (__collate_load_tables_l(encoding, table) != _LDP_LOADED) {
|
||||
xlocale_release(table);
|
||||
return NULL;
|
||||
return (NULL);
|
||||
}
|
||||
return table;
|
||||
return (table);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user