musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/locale/iconv.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale/iconv.c b/src/locale/iconv.c
index f9f80174..e1b00de3 100644
--- a/src/locale/iconv.c
+++ b/src/locale/iconv.c
@@ -310,7 +310,7 @@ iconv_t iconv_open(const char *to, const char *from)
{
size_t f, t;
- if ((t = find_charmap(to)) < 0 || (f = find_charmap(from)) < 0) {
+ if ((t = find_charmap(to))==-1 || (f = find_charmap(from))==-1) {
errno = EINVAL;
return (iconv_t)-1;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月19日 16:04:02 +0000

AltStyle によって変換されたページ (->オリジナル) /