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

Re: svn commit: r26913 - in trunk/subversion: bindings/swig include libsvn_subr tests/libsvn_subr

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2007-10-18 00:36:50 CEST

blair@tigris.org writes:

> Author: blair
> Date: Wed Oct 3 12:24:47 2007
> New Revision: 26913

> + for (i = 0; i < components->nelts; ++i)
> + {
> + /* Append a '/' to the path. Handle the case with an absolute
> + path where a '/' appears in the first component. Only append
> + a '/' if the component is the second component that does not
> + follow a "/" first component; or it is the third or later
> + component. */
> + if (i > 1 ||
> + (i == 1 && strcmp("/", APR_ARRAY_IDX(components,
> + 0,
> + const char *)) != 0))

How about:

          if (p > path && p[-1] != '/')

> + {
> + *p++ = '/';
> + }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 18 00:37:09 2007

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.