Prevent some coredumps when using JavaHL SVNClient::diff().
* subversion/bindings/javahl/native/SVNClient.cpp
(SVNClient::diff): Replace NULL stderr stream in calls to
svn_client_diff_peg6() and svn_client_diff6() with
calls to svn_stream_empty().
Patch by: Matthew Burt
@@ -1055,7 +1055,8 @@ void SVNClient::diff(const char *target1, Revision &revision1,
options.useGitDiffFormat(),
SVN_APR_LOCALE_CHARSET,
outputStream.getStream(subPool),
- NULL /* error file */,
+ // Discard stderr; TODO: Update JavaHL API
+ svn_stream_empty(subPool.getPool()),
changelists.array(subPool),
ctx,
subPool.getPool()),
@@ -1084,7 +1085,8 @@ void SVNClient::diff(const char *target1, Revision &revision1,
options.useGitDiffFormat(),
SVN_APR_LOCALE_CHARSET,
outputStream.getStream(subPool),
- NULL /* error stream */,
+ // Discard stderr; TODO: Update JavaHL API
+ svn_stream_empty(subPool.getPool()),
changelists.array(subPool),
ctx,
subPool.getPool()),
