subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1294235 - /subversion/trunk/subversion/libsvn_repos/replay.c
Date Mon, 27 Feb 2012 17:18:31 GMT
Author: hwright
Date: Mon Feb 27 17:18:31 2012
New Revision: 1294235

URL: http://svn.apache.org/viewvc?rev=1294235&view=rev
Log:
Use an APR function, rather than modifying the datastructure directly.

* subversion/libsvn_repos/replay.c
  (path_driver_cb_func): Use apr_array_pop() instead of changing NELTS manually.

Modified:
    subversion/trunk/subversion/libsvn_repos/replay.c

Modified: subversion/trunk/subversion/libsvn_repos/replay.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/replay.c?rev=1294235&r1=1294234&r2=1294235&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/replay.c (original)
+++ subversion/trunk/subversion/libsvn_repos/replay.c Mon Feb 27 17:18:31 2012
@@ -495,7 +495,7 @@ path_driver_cb_func(void **dir_baton,
                                                    cb->copies->nelts - 1,
                                                    struct copy_info).path,
                                      edit_path))
-    cb->copies->nelts--;
+    apr_array_pop(cb->copies);
 
   change = apr_hash_get(cb->changed_paths, edit_path, APR_HASH_KEY_STRING);
   if (! change)



Mime
View raw message