You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2012/04/18 15:23:52 UTC
svn commit: r1327501 -
/subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c
Author: stefan2
Date: Wed Apr 18 13:23:52 2012
New Revision: 1327501
URL: http://svn.apache.org/viewvc?rev=1327501&view=rev
Log:
* subversion/tests/libsvn_subr/named_atomic-test.c
(adjust_proc_path): directory return value must have a longer lifetime
than the function call
Modified:
subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c
Modified: subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c?rev=1327501&r1=1327500&r2=1327501&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c Wed Apr 18 13:23:52 2012
@@ -93,7 +93,7 @@ adjust_proc_path(const char **proc, cons
/* And we need to set the working dir to our working dir to make
* our sub-processes find all DLLs. */
GetCurrentDirectoryA(sizeof(path), path);
- *directory = path;
+ *directory = apr_pstrdup(pool, path);
#endif
return SVN_NO_ERROR;