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

APR_HASH_KEY_STRING (was: Re: CVS update: subversion/subversion/tests/xml pipatch.xml)

From: Greg Stein <gstein_at_lyra.org>
Date: 2001-02-17 23:09:35 CET

FYI... (for everyone, not just Michael)

On Sat, Feb 17, 2001 at 06:08:13PM -0000, cmpilato@tigris.org wrote:
>...
> --- xml_output.c 2001/02/16 20:28:52 1.33
> +++ xml_output.c 2001/02/17 18:08:12 1.34
>...
> - apr_hash_set (att, SVN_DELTA__XML_ATTR_BASE_PATH,
> - strlen(SVN_DELTA__XML_ATTR_BASE_PATH), base_path);
> + apr_hash_set (att, SVN_DELTA__XML_ATTR_COPYFROM_PATH,
> + strlen(SVN_DELTA__XML_ATTR_COPYFROM_PATH), base_path);

apr_hash_set(att, SVN_DELTA__XML_ATTR_COPYFROM_PATH, APR_HASH_KEY_STRING,
             base_path)

Saves a bit of typing :-) It can also help to avoid mistakes in the
computation of the length (e.g. typos or some bozo adding 1 or something).

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:22 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.