summaryrefslogtreecommitdiffstats
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-04 00:34:48 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-04 00:34:48 +0000
commit32d84e02b0bf4decb125201078e4c6d53f111c93 (patch)
tree6cbfa64b284d805ed1d89fea9da9f6a4fa0eb81c /gcc/java/lex.c
parenta40e2f76cef0062b585ce194aa5e01d521ae11f5 (diff)
downloadppe42-gcc-32d84e02b0bf4decb125201078e4c6d53f111c93.tar.gz
ppe42-gcc-32d84e02b0bf4decb125201078e4c6d53f111c93.zip
2001-05-03 Mo DeJong <mdejong@redhat.com>
* lex.c (java_new_lexer): Call iconv_close on temp handle used to check for byte swap. (http://gcc.gnu.org/ml/java-patches/2001-q2/msg00185.html ) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41818 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r--gcc/java/lex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index 0bf6d7a1ff5..28a73e3874b 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -269,6 +269,7 @@ java_new_lexer (finput, encoding)
outc = 2;
r = iconv (handle, (const char **) &inp, &inc, &outp, &outc);
+ iconv_close (handle);
/* Conversion must be complete for us to use the result. */
if (r != (size_t) -1 && inc == 0 && outc == 0)
need_byteswap = (result != 0xfeff);
OpenPOWER on IntegriCloud