subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1330554 - /subversion/branches/1.6.x-r1330410/subversion/libsvn_repos/hooks.c
Date Wed, 25 Apr 2012 20:51:30 GMT
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)



Mime
View raw message