diff options
Diffstat (limited to 'newlib/libc/sys/linux/iconv/gconv_open.c')
-rw-r--r-- | newlib/libc/sys/linux/iconv/gconv_open.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/newlib/libc/sys/linux/iconv/gconv_open.c b/newlib/libc/sys/linux/iconv/gconv_open.c index 5c10d601e..1b2fbb51a 100644 --- a/newlib/libc/sys/linux/iconv/gconv_open.c +++ b/newlib/libc/sys/linux/iconv/gconv_open.c @@ -172,7 +172,10 @@ __gconv_open (const char *toset, const char *fromset, __gconv_t *handle, lastp = runp; else /* This means we haven't found the module. Remove it. */ - (lastp == NULL ? trans : lastp->next) = runp->next; + if (lastp == NULL) + trans = runp->next; + else + lastp->next = runp->next; } /* Allocate room for handle. */ |