You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2013/06/12 13:54:19 UTC

svn commit: r1492164 - /subversion/trunk/tools/server-side/fsfs-stats.c

Author: stefan2
Date: Wed Jun 12 11:54:19 2013
New Revision: 1492164

URL: http://svn.apache.org/r1492164
Log:
Fix a segfault in fsfs-stats tool if the given path is not actually
a FSFS repository (or can't be opened for any other reason).

* tools/server-side/fsfs-stats.c
  (main): don't attempt to dump stats if reading the repo failed

Modified:
    subversion/trunk/tools/server-side/fsfs-stats.c

Modified: subversion/trunk/tools/server-side/fsfs-stats.c
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/server-side/fsfs-stats.c?rev=1492164&r1=1492163&r2=1492164&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/fsfs-stats.c (original)
+++ subversion/trunk/tools/server-side/fsfs-stats.c Wed Jun 12 11:54:19 2013
@@ -2169,13 +2169,13 @@ int main(int argc, const char *argv[])
   svn_err = read_revisions(&fs, repo_path, start_revision, memsize, pool);
   printf("\n");
 
-  print_stats(fs, pool);
-
   if (svn_err)
     {
       svn_handle_error2(svn_err, stdout, FALSE, ERROR_TAG);
       return 2;
     }
 
+  print_stats(fs, pool);
+
   return 0;
 }