diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-10-22 20:22:20 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-10-22 20:22:20 +0200 |
commit | 34aded1f54da8e3035275bce3196cb607d3e386c (patch) | |
tree | b9c5d4490667a2176f41881cb7b1971fb98ff394 /newlib/libc/stdlib/sb_charsets.c | |
parent | dda82d1a7be51719013dd2c9d255a2e7790eed53 (diff) | |
download | cygnal-34aded1f54da8e3035275bce3196cb607d3e386c.tar.gz cygnal-34aded1f54da8e3035275bce3196cb607d3e386c.tar.bz2 cygnal-34aded1f54da8e3035275bce3196cb607d3e386c.zip |
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>
Diffstat (limited to 'newlib/libc/stdlib/sb_charsets.c')
0 files changed, 0 insertions, 0 deletions