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 2012/04/25 22:51:30 UTC
svn commit: r1330554 -
/subversion/branches/1.6.x-r1330410/subversion/libsvn_repos/hooks.c
Author: stsp
Date: Wed Apr 25 20:51:29 2012
New Revision: 1330554
URL: http://svn.apache.org/viewvc?rev=1330554&view=rev
Log:
On the 1.6.x-r1330410 branch:
* subversion/libsvn_repos/hooks.c
(run_hook_cmd): Prevent any attempt to close the null_handle if it was
never opened.
Modified:
subversion/branches/1.6.x-r1330410/subversion/libsvn_repos/hooks.c
Modified: subversion/branches/1.6.x-r1330410/subversion/libsvn_repos/hooks.c
URL: http://svn.apache.org/viewvc/subversion/branches/1.6.x-r1330410/subversion/libsvn_repos/hooks.c?rev=1330554&r1=1330553&r2=1330554&view=diff
==============================================================================
--- subversion/branches/1.6.x-r1330410/subversion/libsvn_repos/hooks.c (original)
+++ subversion/branches/1.6.x-r1330410/subversion/libsvn_repos/hooks.c Wed Apr 25 20:51:29 2012
@@ -280,7 +280,7 @@ run_hook_cmd(svn_string_t **result,
*result = svn_string_create_from_buf(native_stdout, pool);
}
- else
+ else if (!result)
{
apr_err = apr_file_close(null_handle);
if (!err && apr_err)