acadia-newlib/newlib/libc/locale
Corinna Vinschen 34aded1f54 Fix check for empty locale string in newlocale
The original test is broken.  It tests for a NULL locale which
isn't just wrong, it simply can't occur at this point due to an
earlier check for a NULL locale string.  Thus, the locale info
for a category is never taken from the environment.

Fixes Coverty CID 153467.

Also, add comment.

Also, add some parens for readability.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-10-22 20:22:20 +02:00
..
Makefile.am Add documentation for duplocale, freelocale, newlocale, and uselocale. 2016-08-15 17:34:40 +02:00
Makefile.in Add documentation for duplocale, freelocale, newlocale, and uselocale. 2016-08-15 17:34:40 +02:00
duplocale.c Add __get_C_locale inline function and fix new locale code for !_MB_CAPABLE targets 2016-08-23 17:57:06 +02:00
freelocale.c Add __get_C_locale inline function and fix new locale code for !_MB_CAPABLE targets 2016-08-23 17:57:06 +02:00
lctype.c Remove non-working __part_load_locale function and any related code 2016-08-15 10:56:57 +02:00
lmessages.c Remove non-working __part_load_locale function and any related code 2016-08-15 10:56:57 +02:00
lmonetary.c Remove non-working __part_load_locale function and any related code 2016-08-15 10:56:57 +02:00
lnumeric.c Remove non-working __part_load_locale function and any related code 2016-08-15 10:56:57 +02:00
locale.c Drop global __ctype_ptr__ entirely in favor of using locale_t::ctype_ptr 2016-08-25 14:18:31 +02:00
locale.tex Fix mismatched parentheses in documentation. 2015-06-24 12:23:25 +01:00
localeconv.c Avoid crash when calling __localeconv_l with __C_locale 2016-08-24 19:46:55 +02:00
newlocale.c Fix check for empty locale string in newlocale 2016-10-22 20:22:20 +02:00
nl_langinfo.3
nl_langinfo.c Implement missing POSIX function nl_langinfo_l 2016-08-20 17:22:41 +02:00
setlocale.h Drop duplicate _ctype_ declaration from ctype_.h 2016-08-25 16:05:18 +02:00
timelocal.c Remove non-working __part_load_locale function and any related code 2016-08-15 10:56:57 +02:00
uselocale.c Add documentation for duplocale, freelocale, newlocale, and uselocale. 2016-08-15 17:34:40 +02:00