You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2015/03/20 02:29:31 UTC
svn commit: r1667917 - /subversion/trunk/subversion/libsvn_subr/properties.c
Author: rhuijben
Date: Fri Mar 20 01:29:31 2015
New Revision: 1667917
URL: http://svn.apache.org/r1667917
Log:
* subversion/libsvn_subr/properties.c
(svn_prop_has_svn_prop): Simplify code. Remove unneeded cast.
Modified:
subversion/trunk/subversion/libsvn_subr/properties.c
Modified: subversion/trunk/subversion/libsvn_subr/properties.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/properties.c?rev=1667917&r1=1667916&r2=1667917&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/properties.c (original)
+++ subversion/trunk/subversion/libsvn_subr/properties.c Fri Mar 20 01:29:31 2015
@@ -131,7 +131,6 @@ svn_boolean_t
svn_prop_has_svn_prop(const apr_hash_t *props, apr_pool_t *pool)
{
apr_hash_index_t *hi;
- const void *prop_name;
if (! props)
return FALSE;
@@ -139,8 +138,9 @@ svn_prop_has_svn_prop(const apr_hash_t *
for (hi = apr_hash_first(pool, (apr_hash_t *)props); hi;
hi = apr_hash_next(hi))
{
- apr_hash_this(hi, &prop_name, NULL, NULL);
- if (svn_prop_is_svn_prop((const char *) prop_name))
+ const char *prop_name = apr_hash_this_key(hi);
+
+ if (svn_prop_is_svn_prop(prop_name))
return TRUE;
}