Checkout
Greg Stein
committed
on 01 Apr 10
Update svn_stream_contents_same() to close the streams before exit. If a
stream is read to the end, then it may as well be closed (and, thus… Show more
Update svn_stream_contents_same() to close the streams before exit. If a

stream is read to the end, then it may as well be closed (and, thus,

simplifying the work for the caller).

* subversion/include/svn_io.h:

 (svn_stream_contents_same2): new function

 (svn_stream_contents_same): deprecated

* subversion/libsvn_subr/stream.c:

 (svn_stream_contents_same): renamed to ...

 (svn_stream_contents_same2): ... this. the streams are now closed before

   exit (regardless or result or error).

* subversion/libsvn_subr/deprecated.c:

 (svn_stream_contents_same): new function. the two streams are disowned

   before passing to same2() so they won't be closed

Show less