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

Re: svn commit: r922245 - /subversion/trunk/subversion/libsvn_subr/mergeinfo.c

From: Julian Foad <julian.foad_at_wandisco.com>
Date: Fri, 12 Mar 2010 15:42:16 +0000

Greg Stein wrote:
> On Fri, Mar 12, 2010 at 08:01, <julianfoad_at_apache.org> wrote:
> >...
> > +++ subversion/trunk/subversion/libsvn_subr/mergeinfo.c Fri Mar 12 13:01:18 2010
> > @@ -848,10 +848,7 @@ svn_mergeinfo__set_inheritance(svn_merge
> > hi;
> > hi = apr_hash_next(hi))
> > {
> > - apr_array_header_t *rangelist;
> > - const char *path = svn__apr_hash_index_key(hi);
> > -
> > - rangelist = apr_hash_get(mergeinfo, path, APR_HASH_KEY_STRING);
> > + apr_array_header_t *rangelist = svn__apr_hash_index_val(hi);
>
> hehe... const?
>
> :-)

Certainly not! This function is modifying the rangelist. (Not
modifying the "apr_array_header_t" structure itself, but modifying data
that an array element points to, so logically modifying "the rangelist
array".)

- Julian
Received on 2010-03-12 16:42:52 CET

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.