subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r950334 - /subversion/trunk/subversion/libsvn_repos/fs-wrap.c
Date Wed, 02 Jun 2010 02:01:27 GMT
Author: hwright
Date: Wed Jun  2 02:01:27 2010
New Revision: 950334

URL: http://svn.apache.org/viewvc?rev=950334&view=rev
Log:
Don't segfault on 'svnadmin pack -q'

* subversion/libsvn_repos/fs-wrap.c
  (svn_repos_fs_pack2): Ignore a NULL notification function.

Modified:
    subversion/trunk/subversion/libsvn_repos/fs-wrap.c

Modified: subversion/trunk/subversion/libsvn_repos/fs-wrap.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/fs-wrap.c?rev=950334&r1=950333&r2=950334&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/fs-wrap.c (original)
+++ subversion/trunk/subversion/libsvn_repos/fs-wrap.c Wed Jun  2 02:01:27 2010
@@ -676,7 +676,9 @@ svn_repos_fs_pack2(svn_repos_t *repos,
   pnb.notify_func = notify_func;
   pnb.notify_baton = notify_baton;
 
-  return svn_fs_pack(repos->db_path, pack_notify_func, &pnb,
+  return svn_fs_pack(repos->db_path,
+                     notify_func ? pack_notify_func : NULL,
+                     notify_func ? &pnb : NULL,
                      cancel_func, cancel_baton, pool);
 }
 



Mime
View raw message