diff options
Diffstat (limited to 'iconv/gconv.c')
-rw-r--r-- | iconv/gconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iconv/gconv.c b/iconv/gconv.c index 6e3080b0e9..b9c404ac03 100644 --- a/iconv/gconv.c +++ b/iconv/gconv.c @@ -39,7 +39,7 @@ __gconv (__gconv_t cd, const unsigned char **inbuf, assert (converted != NULL); *converted = 0; - cd->__data[last_step].__outbuf = *outbuf; + cd->__data[last_step].__outbuf = outbuf != NULL ? *outbuf : NULL; cd->__data[last_step].__outbufend = outbufend; if (inbuf == NULL || *inbuf == NULL) |