[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] svn_fs__open_dag, take 3

From: Jim Blandy <jimb_at_zwingli.cygnus.com>
Date: 2001-02-26 18:38:02 CET

Yoshiki Hayashi <yoshiki@xemacs.org> writes:
> +dag_node_t *
> +svn_fs__dag_dup (dag_node_t *node,
> + trail_t *trail)
> +{
> + dag_node_t *dag_dup = apr_palloc (trail->pool, sizeof (*node));
> + memcpy (dag_dup, node, sizeof (*node));
> + return dag_dup;
> +}

The duplicate must have its pool set correctly, and its ID must be
allocated in its own pool.

Mike's committed his own definition for this function, which had the
same problem with the ID; I'll commit a fix for it shortly, along with
the content caching stuff.
Received on Sat Oct 21 14:36:23 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.