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

Re: svn commit: rev 6107 - in trunk/subversion: libsvn_subr tests/libsvn_subr

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2003-06-01 22:40:56 CEST

On Sunday, June 1, 2003, at 04:32 PM, cmpilato@tigris.org wrote:

> Modified: trunk/subversion/libsvn_subr/target.c
> =======================================================================
> =======
> --- trunk/subversion/libsvn_subr/target.c (original)
> +++ trunk/subversion/libsvn_subr/target.c Sun Jun 1 15:32:41 2003
> @@ -53,6 +53,18 @@
> return SVN_NO_ERROR;
> }
>
> + /* Get the absolute path of the first target. */
> + SVN_ERR (svn_path_get_absolute (pcommon,
> + APR_ARRAY_IDX (targets, 0, const
> char *),
> + pool));
> +
> + /* Early exit when there's only one path to work on. */
> + if (targets->nelts == 1)
> + {
> + if (pcondensed_targets)
> + *pcondensed_targets = apr_array_make (pool, 1, sizeof (const
> char *));
> + return SVN_NO_ERROR;
> + }

Umh, is it just me, or are you making an array of length one in
*pcondensed_targets, and then returning without actually putting
anything in it? that just doesn't seem right...

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jun 1 23:07:40 2003

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.