diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-04-17 21:36:05 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-04-17 21:36:05 +0000 |
commit | 953ec4faf496fbf3a5a91df994365ee53b5ad11b (patch) | |
tree | 5c25490cd7fa2ea0b35aa5137ad301acc0e54972 | |
parent | af9f4d1d73bc8ceaa0c437cb9e742f23701159dc (diff) | |
download | libapr-953ec4faf496fbf3a5a91df994365ee53b5ad11b.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/1.2.x@529775 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 a66724d72..a16310cd0 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 |