You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/04/17 23:36:06 UTC

svn commit: r529775 - /apr/apr/branches/1.2.x/misc/unix/charset.c

Author: wrowe
Date: Tue Apr 17 14:36:05 2007
New Revision: 529775

URL: http://svn.apache.org/viewvc?view=rev&rev=529775
Log:
nl_langinfo() may be transient, pstrdup it.

PR: 41659
Backport: r529774

Modified:
    apr/apr/branches/1.2.x/misc/unix/charset.c

Modified: apr/apr/branches/1.2.x/misc/unix/charset.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/misc/unix/charset.c?view=diff&rev=529775&r1=529774&r2=529775
==============================================================================
--- apr/apr/branches/1.2.x/misc/unix/charset.c (original)
+++ apr/apr/branches/1.2.x/misc/unix/charset.c Tue Apr 17 14:36:05 2007
@@ -75,7 +75,7 @@
         /* Ignore the bogus information and use apr_os_default_encoding() */
         if (charset[0] != '^')
 #endif
-        return charset;
+        return apr_pstrdup(pool, charset);
     }
 #endif