Fix build breakage on APR_HAVE_APR_ICONV path
git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/APU_0_9_BRANCH@59077 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/xlate/xlate.c b/xlate/xlate.c
index 8104b68..2626c8e 100644
--- a/xlate/xlate.c
+++ b/xlate/xlate.c
@@ -178,9 +178,9 @@
else {
/* reset the iconv descriptor, since it's now in an undefined
* state. */
- apr_iconv_close(convset->ich);
- convset->ich = apr_iconv_open(convset->topage, convset->frompage);
- }
+ apr_iconv_close(convset->ich, convset->pool);
+ rv = apr_iconv_open(convset->topage, convset->frompage, convset->pool, &convset->ich);
+ }
}
#endif /* APU_HAVE_APR_ICONV */