diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-10-22 20:28:08 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-10-22 20:28:08 +0200 |
commit | 5005be3daf756a6a6dd4043ac9352e1c4b4af202 (patch) | |
tree | e9223b1b0871dc6ea6aa25243f53044b52959c88 | |
parent | 34aded1f54da8e3035275bce3196cb607d3e386c (diff) | |
download | cygnal-5005be3daf756a6a6dd4043ac9352e1c4b4af202.tar.gz cygnal-5005be3daf756a6a6dd4043ac9352e1c4b4af202.tar.bz2 cygnal-5005be3daf756a6a6dd4043ac9352e1c4b4af202.zip |
Drop redundant checks for NULL input string in wctomb helper funcs
Fixes Coverity CIDs 153465 and 153466
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r-- | newlib/libc/stdlib/wctomb_r.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/newlib/libc/stdlib/wctomb_r.c b/newlib/libc/stdlib/wctomb_r.c index 02b85e685..2c018f916 100644 --- a/newlib/libc/stdlib/wctomb_r.c +++ b/newlib/libc/stdlib/wctomb_r.c @@ -284,9 +284,6 @@ ___iso_wctomb (struct _reent *r, char *s, wchar_t _wchar, int iso_idx, { unsigned char mb; - if (s == NULL) - return 0; - for (mb = 0; mb < 0x60; ++mb) if (__iso_8859_conv[iso_idx][mb] == wchar) { @@ -443,9 +440,6 @@ ___cp_wctomb (struct _reent *r, char *s, wchar_t _wchar, int cp_idx, { unsigned char mb; - if (s == NULL) - return 0; - for (mb = 0; mb < 0x80; ++mb) if (__cp_conv[cp_idx][mb] == wchar) { |