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

Re: svn commit: r1130512 - in /subversion/trunk/subversion: include/svn_string.h libsvn_subr/svn_string.c

From: Greg Stein <gstein_at_gmail.com>
Date: Thu, 2 Jun 2011 09:14:43 -0400

On Thu, Jun 2, 2011 at 08:24, <stefan2_at_apache.org> wrote:
>...
> +++ subversion/trunk/subversion/libsvn_subr/svn_string.c Thu Jun  2 12:24:36 2011
> @@ -235,9 +235,16 @@ svn_string_find_char_backward(const svn_
>   return find_char_backward(str->data, str->len, ch);
>  }
>
> -const svn_string_t *
> -svn_string_from_stringbuf(const svn_stringbuf_t *strbuf)
> +svn_string_t *
> +svn_string_from_stringbuf(svn_stringbuf_t *strbuf)
>  {
> +  /* In debug mode, detect attempts to modify the original STRBUF object.
> +   */
> +#ifdef SVN_DEBUG
> +  strbuf->pool = NULL;
> +  strbuf->blocksize = strbuf->len;
> +#endif

Oooh. Good idea!

Cheers,
-g
Received on 2011-06-02 15:15:18 CEST

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.