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 2011/01/12 00:04:58 UTC

svn commit: r1057912 - /subversion/trunk/subversion/libsvn_client/patch.c

Author: stsp
Date: Tue Jan 11 23:04:57 2011
New Revision: 1057912

URL: http://svn.apache.org/viewvc?rev=1057912&view=rev
Log:
Follow-up to r1057908:

* subversion/libsvn_client/patch.c
  (delete_empty_dirs): Use svn_hash__clear() instead of apr_hash_clear()
   for compatibility with older APR versions.

Modified:
    subversion/trunk/subversion/libsvn_client/patch.c

Modified: subversion/trunk/subversion/libsvn_client/patch.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/patch.c?rev=1057912&r1=1057911&r2=1057912&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/patch.c (original)
+++ subversion/trunk/subversion/libsvn_client/patch.c Tue Jan 11 23:04:57 2011
@@ -32,6 +32,7 @@
 #include "svn_client.h"
 #include "svn_dirent_uri.h"
 #include "svn_diff.h"
+#include "svn_hash.h"
 #include "svn_io.h"
 #include "svn_path.h"
 #include "svn_pools.h"
@@ -2540,7 +2541,7 @@ delete_empty_dirs(apr_array_header_t *ta
        * an empty parent with their parent. */
       again = FALSE;
       empty_dirs_copy = apr_hash_copy(iterpool, empty_dirs);
-      apr_hash_clear(empty_dirs);
+      SVN_ERR(svn_hash__clear(empty_dirs, iterpool));
 
       for (hi = apr_hash_first(iterpool, empty_dirs_copy);
            hi;