Hi,

This patch fixes the bug reported in http://svn.haxx.se/dev/archive-2010-12/0592.shtml . We need to copy the value of PCOMMON from SCRATCH_POOL to RESULT_POOL since we are exiting early when there is only one target uri to work on.

Attached the patch and log message.

Thanks & Regards,
Vijayaguru
[[[
Copy *PCOMMON from SCRATCH_POOL to RESULT_POOL in svn_uri_condense_targets()
since we are exiting early when there is exactly one target to work on.

* subversion/libsvn_subr/dirent_uri.c:
  (svn_uri_condense_targets): Copy *PCOMMON into RESULT_POOL for single
    target case.

Patch by: Vijayaguru G <vijay{_AT_}collab.net>
]]]
Index: subversion/libsvn_subr/dirent_uri.c
===================================================================
--- subversion/libsvn_subr/dirent_uri.c	(revision 1052459)
+++ subversion/libsvn_subr/dirent_uri.c	(working copy)
@@ -2144,6 +2144,7 @@
   /* Early exit when there's only one uri to work on. */
   if (targets->nelts == 1)
     {
+      *pcommon = apr_pstrdup(result_pool, *pcommon);
       if (pcondensed_targets)
         *pcondensed_targets = apr_array_make(result_pool, 0,
                                              sizeof(const char *));

Reply via email to