Author: stefan2
Date: Sat Jun  8 11:24:10 2013
New Revision: 1490958

URL: http://svn.apache.org/r1490958
Log:
On the fsfs-format7 branch: make sure that we use fully initialized
data structures.

* subversion/libsvn_fs_fs/cached_data.c
  (create_rep_state_body): clean upon allocation because we might not
                           assign all members

Modified:
    subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c

Modified: subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c?rev=1490958&r1=1490957&r2=1490958&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c 
(original)
+++ subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c Sat 
Jun  8 11:24:10 2013
@@ -753,7 +753,7 @@ create_rep_state_body(rep_state_t **rep_
         }
       else
         {
-          shared_file_t *file = apr_palloc(pool, sizeof(*file));
+          shared_file_t *file = apr_pcalloc(pool, sizeof(*file));
           file->revision = rep->revision;
           file->pool = pool;
           file->fs = fs;


Reply via email to