subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1066143 - /subversion/trunk/subversion/libsvn_subr/target.c
Date Tue, 01 Feb 2011 19:13:25 GMT
Author: stsp
Date: Tue Feb  1 19:13:24 2011
New Revision: 1066143

URL: http://svn.apache.org/viewvc?rev=1066143&view=rev
Log:
Follow-up to r1066087:
* subversion/libsvn_subr/target.c
  (svn_path_condense_targets): Initialise *pcommon in case the first
   target was a URL.

Modified:
    subversion/trunk/subversion/libsvn_subr/target.c

Modified: subversion/trunk/subversion/libsvn_subr/target.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/target.c?rev=1066143&r1=1066142&r2=1066143&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/target.c (original)
+++ subversion/trunk/subversion/libsvn_subr/target.c Tue Feb  1 19:13:24 2011
@@ -63,7 +63,10 @@ svn_path_condense_targets(const char **p
   first_target = APR_ARRAY_IDX(targets, 0, const char *);
   first_target_is_url = svn_path_is_url(first_target);
   if (first_target_is_url)
-    first_target = apr_pstrdup(pool, first_target);
+    {
+      first_target = apr_pstrdup(pool, first_target);
+      *pcommon = first_target;
+    }
   else
     SVN_ERR(svn_dirent_get_absolute(pcommon, first_target, pool));
 



Mime
View raw message