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 2011/07/11 22:36:15 UTC

svn commit: r1145335 - /subversion/branches/svn_mutex/subversion/include/private/svn_mutex.h

Author: stefan2
Date: Mon Jul 11 20:36:14 2011
New Revision: 1145335

URL: http://svn.apache.org/viewvc?rev=1145335&view=rev
Log:
On svn_mutex branch:

* subversion/include/private/svn_mutex.h
  (SVN_MUTEX__WITH_LOCK): expr parameter should be used with parentheses

Found by: danielsh

Modified:
    subversion/branches/svn_mutex/subversion/include/private/svn_mutex.h

Modified: subversion/branches/svn_mutex/subversion/include/private/svn_mutex.h
URL: http://svn.apache.org/viewvc/subversion/branches/svn_mutex/subversion/include/private/svn_mutex.h?rev=1145335&r1=1145334&r2=1145335&view=diff
==============================================================================
--- subversion/branches/svn_mutex/subversion/include/private/svn_mutex.h (original)
+++ subversion/branches/svn_mutex/subversion/include/private/svn_mutex.h Mon Jul 11 20:36:14 2011
@@ -110,7 +110,7 @@ do {                                    
   svn_mutex__t *m = (mutex);              \
   svn_error_t *e = svn_mutex__lock(m);    \
   if (e) return svn_error_trace(e);       \
-  e = svn_mutex__unlock(m, expr);         \
+  e = svn_mutex__unlock(m, (expr));       \
   if (e) return svn_error_trace(e);       \
 } while (0);