subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1670323 - /subversion/branches/1.10-cache-improvements/subversion/libsvn_subr/cache-null.c
Date Tue, 31 Mar 2015 12:52:36 GMT
Author: stefan2
Date: Tue Mar 31 12:52:36 2015
New Revision: 1670323

URL: http://svn.apache.org/r1670323
Log:
On the 1.10-cache-improvements:
Correctly handle an API special case in our null-cache.  

* subversion/libsvn_subr/cache-null.c
  (null_cache_iter): The COMPLETED parameter is optional.

Found by: danielsh

Modified:
    subversion/branches/1.10-cache-improvements/subversion/libsvn_subr/cache-null.c

Modified: subversion/branches/1.10-cache-improvements/subversion/libsvn_subr/cache-null.c
URL: http://svn.apache.org/viewvc/subversion/branches/1.10-cache-improvements/subversion/libsvn_subr/cache-null.c?rev=1670323&r1=1670322&r2=1670323&view=diff
==============================================================================
--- subversion/branches/1.10-cache-improvements/subversion/libsvn_subr/cache-null.c (original)
+++ subversion/branches/1.10-cache-improvements/subversion/libsvn_subr/cache-null.c Tue Mar
31 12:52:36 2015
@@ -71,7 +71,9 @@ null_cache_iter(svn_boolean_t *completed
                 apr_pool_t *scratch_pool)
 {
   /* Iteration over an empty set is a no-op. */
-  *completed = TRUE;
+  if (completed)
+    *completed = TRUE;
+
   return SVN_NO_ERROR;
 }
 



Mime
View raw message