diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-04-17 21:36:43 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-04-17 21:36:43 +0000 |
commit | 7b0e6ff42a9089b79aa42467dfdaf942e3b21600 (patch) | |
tree | 9c09e933a0436f3fe93857caf5ff16584a11d3d6 | |
parent | cb6beca95889fbadf9a67939b4c377f5163644ec (diff) | |
download | libapr-7b0e6ff42a9089b79aa42467dfdaf942e3b21600.tar.gz |
nl_langinfo() may be transient, pstrdup it.
PR: 41659
Backport: r529774
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@529777 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | misc/unix/charset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/unix/charset.c b/misc/unix/charset.c index b76eef312..57018a7c2 100644 --- a/misc/unix/charset.c +++ b/misc/unix/charset.c @@ -75,7 +75,7 @@ APR_DECLARE(const char*) apr_os_locale_encoding (apr_pool_t *pool) /* Ignore the bogus information and use apr_os_default_encoding() */ if (charset[0] != '^') #endif - return charset; + return apr_pstrdup(pool, charset); } #endif |