You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2013/06/21 15:37:37 UTC

svn commit: r1495432 - /subversion/trunk/subversion/libsvn_repos/fs-wrap.c

Author: danielsh
Date: Fri Jun 21 13:37:37 2013
New Revision: 1495432

URL: http://svn.apache.org/r1495432
Log:
* subversion/libsvn_repos/fs-wrap.c
  (svn_repos__validate_prop): Consider NULL a valid value, to allow
    deleting non-regular props from historical repositories that have them.

Suggested by: Arwin Arni
(along with a patch)

Modified:
    subversion/trunk/subversion/libsvn_repos/fs-wrap.c

Modified: subversion/trunk/subversion/libsvn_repos/fs-wrap.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/fs-wrap.c?rev=1495432&r1=1495431&r2=1495432&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/fs-wrap.c (original)
+++ subversion/trunk/subversion/libsvn_repos/fs-wrap.c Fri Jun 21 13:37:37 2013
@@ -172,6 +172,10 @@ svn_repos__validate_prop(const char *nam
 {
   svn_prop_kind_t kind = svn_property_kind2(name);
 
+  /* No property is mandatory. */
+  if (value == NULL)
+    return SVN_NO_ERROR;
+
   /* Disallow setting non-regular properties. */
   if (kind != svn_prop_regular_kind)
     return svn_error_createf