subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1652680 - /subversion/trunk/subversion/libsvn_fs_x/dag.c
Date Sat, 17 Jan 2015 21:53:58 GMT
Author: stefan2
Date: Sat Jan 17 21:53:58 2015
New Revision: 1652680

URL: http://svn.apache.org/r1652680
Log:
* subversion/libsvn_fs_x/dag.c
  (delete_if_mutable): svn_fs_x__dag_dir_entries can never return NULL,
                       so don't check for it.

Modified:
    subversion/trunk/subversion/libsvn_fs_x/dag.c

Modified: subversion/trunk/subversion/libsvn_fs_x/dag.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/dag.c?rev=1652680&r1=1652679&r2=1652680&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/dag.c (original)
+++ subversion/trunk/subversion/libsvn_fs_x/dag.c Sat Jan 17 21:53:58 2015
@@ -832,15 +832,14 @@ delete_if_mutable(svn_fs_t *fs,
 
       /* Loop over directory entries */
       SVN_ERR(svn_fs_x__dag_dir_entries(&entries, node, scratch_pool));
-      if (entries)
-        for (i = 0; i < entries->nelts; ++i)
-          {
-            const svn_fs_x__id_t *noderev_id
-              = &APR_ARRAY_IDX(entries, i, svn_fs_x__dirent_t *)->id;
+      for (i = 0; i < entries->nelts; ++i)
+        {
+          const svn_fs_x__id_t *noderev_id
+            = &APR_ARRAY_IDX(entries, i, svn_fs_x__dirent_t *)->id;
 
-            svn_pool_clear(iterpool);
-            SVN_ERR(delete_if_mutable(fs, noderev_id, iterpool));
-          }
+          svn_pool_clear(iterpool);
+          SVN_ERR(delete_if_mutable(fs, noderev_id, iterpool));
+        }
 
       svn_pool_destroy(iterpool);
     }



Mime
View raw message