You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2010/06/02 04:01:27 UTC
svn commit: r950334 - /subversion/trunk/subversion/libsvn_repos/fs-wrap.c
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);
}