public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] libc/iconv: Detect CES handler loading failure
@ 2020-07-10 10:03 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2020-07-10 10:03 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6c772f4547c5eea46fb814806509b78f08dfdfa1
commit 6c772f4547c5eea46fb814806509b78f08dfdfa1
Author: Keith Packard via Newlib <newlib@sourceware.org>
Date: Thu Jul 9 16:58:45 2020 -0700
libc/iconv: Detect CES handler loading failure
Fix the code checking for character set loading failure so that
it checks the return value from the init function.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diff:
---
newlib/libc/iconv/ces/euc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/newlib/libc/iconv/ces/euc.c b/newlib/libc/iconv/ces/euc.c
index 29d36f941..ebd7091b0 100644
--- a/newlib/libc/iconv/ces/euc.c
+++ b/newlib/libc/iconv/ces/euc.c
@@ -306,7 +306,7 @@ ok:
data->data[i] = _iconv_to_ucs_ces_handlers_table.init (
rptr,
data->desc[i].csname);
- if (data->data == NULL)
+ if (data->data[i] == NULL)
goto error;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-10 10:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-10 10:03 [newlib-cygwin] libc/iconv: Detect CES handler loading failure Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).