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

Re: Need help with this DAV stuff

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-11-06 21:40:35 CET

On Wed, Nov 06, 2002 at 09:03:58PM +0100, Branko Cibej wrote:
>...
> If apr_xml_quote_string doesn't always allocate new space for its
> result, then that's either a bug in that function, _or_ it must
> guarantee that the returned pointer will be the same as the one passed
> in,

The latter:

    /* nothing to do? */
    if (extra == 0)
        return s;

(the doc ought to be updated for that in the header...)

> in which case we can check that and pstrdup only when necessary. Right?

That would be much better than strdup'ing all the time.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 6 21:39:57 2002

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.