subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1134474 - /subversion/trunk/subversion/libsvn_repos/dump.c
Date Fri, 10 Jun 2011 23:12:18 GMT
Author: danielsh
Date: Fri Jun 10 23:12:18 2011
New Revision: 1134474

URL: http://svn.apache.org/viewvc?rev=1134474&view=rev
Log:
Save an unneeded-for-good-repositories memory allocation.

* subversion/libsvn_repos/dump.c
  (svn_repos_dump_fs3): Move an allocation to after a condition.

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

Modified: subversion/trunk/subversion/libsvn_repos/dump.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/dump.c?rev=1134474&r1=1134473&r2=1134474&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/dump.c (original)
+++ subversion/trunk/subversion/libsvn_repos/dump.c Fri Jun 10 23:12:18 2011
@@ -1120,10 +1120,10 @@ svn_repos_dump_fs3(svn_repos_t *repos,
          warning, since the inline warnings already issued might easily be
          missed. */
 
-      notify = svn_repos_notify_create(svn_repos_notify_warning, subpool);
-
       if (found_old_reference)
         {
+          notify = svn_repos_notify_create(svn_repos_notify_warning, subpool);
+
           notify->warning = svn_repos_notify_warning_found_old_reference;
           notify->warning_str = _("The range of revisions dumped "
                                   "contained references to "
@@ -1136,6 +1136,8 @@ svn_repos_dump_fs3(svn_repos_t *repos,
          in dumped mergeinfo. */
       if (found_old_mergeinfo)
         {
+          notify = svn_repos_notify_create(svn_repos_notify_warning, subpool);
+
           notify->warning = svn_repos_notify_warning_found_old_mergeinfo;
           notify->warning_str = _("The range of revisions dumped "
                                   "contained mergeinfo "



Mime
View raw message