You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2013/10/21 13:58:21 UTC
svn commit: r1534110 - /subversion/trunk/subversion/libsvn_subr/config.c
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;