You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2012/01/09 20:14:06 UTC

svn commit: r1229303 - /subversion/trunk/subversion/libsvn_wc/adm_ops.c

Author: philip
Date: Mon Jan  9 19:14:06 2012
New Revision: 1229303

URL: http://svn.apache.org/viewvc?rev=1229303&view=rev
Log:
Fix an 'svn revert' assert caused by accessing the wrong memory.

* subversion/libsvn_wc/adm_ops.c
  (compare_revert_list_copied_children): Cast to the correct pointer type.

Modified:
    subversion/trunk/subversion/libsvn_wc/adm_ops.c

Modified: subversion/trunk/subversion/libsvn_wc/adm_ops.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/adm_ops.c?rev=1229303&r1=1229302&r2=1229303&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/adm_ops.c (original)
+++ subversion/trunk/subversion/libsvn_wc/adm_ops.c Mon Jan  9 19:14:06 2012
@@ -1460,11 +1460,11 @@ remove_conflict_file(svn_boolean_t *noti
 static int
 compare_revert_list_copied_children(const void *a, const void *b)
 {
-  const svn_wc__db_revert_list_copied_child_info_t *ca = a;
-  const svn_wc__db_revert_list_copied_child_info_t *cb = b;
+  const svn_wc__db_revert_list_copied_child_info_t * const *ca = a;
+  const svn_wc__db_revert_list_copied_child_info_t * const *cb = b;
   int i;
 
-  i = svn_path_compare_paths(ca->abspath, cb->abspath);
+  i = svn_path_compare_paths(ca[0]->abspath, cb[0]->abspath);
 
   /* Reverse the result of svn_path_compare_paths() to achieve
    * descending order. */