subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1166376 - /subversion/branches/fs-successor-ids/subversion/libsvn_fs_fs/fs_fs.c
Date Wed, 07 Sep 2011 20:15:06 GMT
Author: danielsh
Date: Wed Sep  7 20:15:06 2011
New Revision: 1166376

URL: http://svn.apache.org/viewvc?rev=1166376&view=rev
Log:
On the fs-successor-ids branch, tweak an array initialization.

* subversion/libsvn_fs_fs/fs_fs.c
  (write_new_successor_index): Just initialize the array to zero instead
    of memset()ing it to zero.

Modified:
    subversion/branches/fs-successor-ids/subversion/libsvn_fs_fs/fs_fs.c

Modified: subversion/branches/fs-successor-ids/subversion/libsvn_fs_fs/fs_fs.c
URL: http://svn.apache.org/viewvc/subversion/branches/fs-successor-ids/subversion/libsvn_fs_fs/fs_fs.c?rev=1166376&r1=1166375&r2=1166376&view=diff
==============================================================================
--- subversion/branches/fs-successor-ids/subversion/libsvn_fs_fs/fs_fs.c (original)
+++ subversion/branches/fs-successor-ids/subversion/libsvn_fs_fs/fs_fs.c Wed Sep  7 20:15:06
2011
@@ -1304,7 +1304,7 @@ static svn_error_t *
 write_new_successor_index(apr_file_t *file,
                           apr_pool_t *pool)
 {
-  apr_uint64_t zeroes[FSFS_SUCCESSORS_MAX_REVS_PER_FILE - 1];
+  apr_uint64_t zeroes[FSFS_SUCCESSORS_MAX_REVS_PER_FILE - 1] = { 0 };
   apr_uint32_t n;
 
   /* Write the first entry. */
@@ -1314,7 +1314,6 @@ write_new_successor_index(apr_file_t *fi
   SVN_ERR(svn_io_file_write_full(file, &n, sizeof(n), NULL, pool));
 
   /* Write the rest of the new index (all zeroes). */
-  memset(zeroes, 0, sizeof(zeroes));
   SVN_ERR(svn_io_file_write_full(file, zeroes, sizeof(zeroes),
                                  NULL, pool));
 



Mime
View raw message