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/02/11 10:29:57 UTC

svn commit: r1444691 - /subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c

Author: stefan2
Date: Mon Feb 11 09:29:57 2013
New Revision: 1444691

URL: http://svn.apache.org/r1444691
Log:
On the fsfs-format7 branch: improve robustness

* subversion/libsvn_fs_fs/cached_data.c
  (block_read): add a minor sanity check

Modified:
    subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c

Modified: subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c?rev=1444691&r1=1444690&r2=1444691&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c (original)
+++ subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c Mon Feb 11 09:29:57 2013
@@ -2329,6 +2329,8 @@ block_read(void **result,
         }
     }
 
+  /* if the caller requested a result, we must have provided one by now */
+  assert(!result || *result);
   SVN_ERR(svn_stream_close(stream));
   svn_pool_destroy(iterpool);