Author: rhuijben
Date: Wed May 15 16:21:44 2013
New Revision: 1482939

URL: http://svn.apache.org/r1482939
Log:
Use svn_hash_gets() for an apr_hash containing a single item, instead of a
hash iterator.

* subversion/libsvn_client/add.c
  (svn_client__get_all_auto_props): Use hash fetch. Leave whitespace change
    for separate commit.

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

Modified: subversion/trunk/subversion/libsvn_client/add.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/add.c?rev=1482939&r1=1482938&r2=1482939&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/add.c (original)
+++ subversion/trunk/subversion/libsvn_client/add.c Wed May 15 16:21:44 2013
@@ -704,15 +704,12 @@ svn_client__get_all_auto_props(apr_hash_
 
   for (i = 0; i < inherited_config_auto_props->nelts; i++)
     {
-      apr_hash_index_t *hi;
       svn_prop_inherited_item_t *elt = APR_ARRAY_IDX(
         inherited_config_auto_props, i, svn_prop_inherited_item_t *);
+      const svn_string_t *propval =
+        svn_hash_gets(elt->prop_hash, SVN_PROP_INHERITABLE_AUTO_PROPS);
 
-      for (hi = apr_hash_first(scratch_pool, elt->prop_hash);
-           hi;
-           hi = apr_hash_next(hi))
         {
-          const svn_string_t *propval = svn__apr_hash_index_val(hi);
           const char *ch = propval->data;
           svn_stringbuf_t *config_auto_prop_pattern;
           svn_stringbuf_t *config_auto_prop_val;


Reply via email to