subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1330476 - /subversion/trunk/subversion/libsvn_repos/hooks.c
Date Wed, 25 Apr 2012 18:39:45 GMT
Author: stsp
Date: Wed Apr 25 18:39:45 2012
New Revision: 1330476

URL: http://svn.apache.org/viewvc?rev=1330476&view=rev
Log:
* subversion/libsvn_repos/hooks.c
  (run_hook_cmd): Zero the cmd_proc structure to ensure that tests for open
    file descriptors work even if the stack contains random data.

Modified:
    subversion/trunk/subversion/libsvn_repos/hooks.c

Modified: subversion/trunk/subversion/libsvn_repos/hooks.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/hooks.c?rev=1330476&r1=1330475&r2=1330476&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/hooks.c (original)
+++ subversion/trunk/subversion/libsvn_repos/hooks.c Wed Apr 25 18:39:45 2012
@@ -212,7 +212,7 @@ run_hook_cmd(svn_string_t **result,
   apr_file_t *null_handle;
   apr_status_t apr_err;
   svn_error_t *err;
-  apr_proc_t cmd_proc;
+  apr_proc_t cmd_proc = {0};
 
   if (result)
     {



Mime
View raw message