subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1151904 - /subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
Date Thu, 28 Jul 2011 16:03:54 GMT
Author: hwright
Date: Thu Jul 28 16:03:53 2011
New Revision: 1151904

URL: http://svn.apache.org/viewvc?rev=1151904&view=rev
Log:
Remove a redundant call to svn_uuid_generate().

* subversion/libsvn_fs_fs/fs_fs.c
  (svn_fs_fs__create): Call svn_fs_fs__set_uuid() with a NULL uuid.  The
    function is already set up to generate one for us if we don't provide
    one, so let's just use that functionality.

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c

Modified: subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c?rev=1151904&r1=1151903&r2=1151904&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Thu Jul 28 16:03:53 2011
@@ -6631,7 +6631,7 @@ svn_fs_fs__create(svn_fs_t *fs,
                               ? "0\n" : "0 1 1\n"),
                              pool));
   SVN_ERR(svn_io_file_create(path_lock(fs, pool), "", pool));
-  SVN_ERR(svn_fs_fs__set_uuid(fs, svn_uuid_generate(pool), pool));
+  SVN_ERR(svn_fs_fs__set_uuid(fs, NULL, pool));
 
   SVN_ERR(write_revision_zero(fs));
 



Mime
View raw message