subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1534110 - /subversion/trunk/subversion/libsvn_subr/config.c
Date Mon, 21 Oct 2013 11:58:21 GMT
Author: stefan2
Date: Mon Oct 21 11:58:21 2013
New Revision: 1534110

URL: http://svn.apache.org/r1534110
Log:
* subversion/libsvn_subr/config.c
  (svn_config_set): replace plain assertion with our macros
                    as we have better control over them

Suggested by: brane

Modified:
    subversion/trunk/subversion/libsvn_subr/config.c

Modified: subversion/trunk/subversion/libsvn_subr/config.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/config.c?rev=1534110&r1=1534109&r2=1534110&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/config.c (original)
+++ subversion/trunk/subversion/libsvn_subr/config.c Mon Oct 21 11:58:21 2013
@@ -701,7 +701,9 @@ svn_config_set(svn_config_t *cfg,
    * Since we should never try to modify r/o data, trigger an assertion
    * in debug mode.
    */
-  assert(!cfg->read_only);
+#ifdef SVN_DEBUG
+  SVN_ERR_ASSERT_NO_RETURN(!cfg->read_only);
+#endif
   if (cfg->read_only)
     return;
 



Mime
View raw message