On Wed, 4 May 2005, [UTF-8] Branko Ä^Libej wrote:
> Philip Martin wrote:
>
> >lundblad@tigris.org writes:
> >
> >
> >
> >>Author: lundblad
> >>Date: Mon May 2 14:01:09 2005
> >>New Revision: 14557
> >>
> >>
> >
> >
> >
> >>--- trunk/subversion/libsvn_subr/cmdline.c (original)
> >>+++ trunk/subversion/libsvn_subr/cmdline.c Mon May 2 14:01:09 2005
> >>@@ -356,3 +356,11 @@
> >>
> >> return SVN_NO_ERROR;
> >> }
> >>+
> >>+const char *svn_cmdline_output_encoding (apr_pool_t *pool)
> >>+{
> >>+ if (output_encoding)
> >>+ return apr_pstrdup (pool, output_encoding);
> >>
> >>
> >
> >Why the apr_pstrdup?
> >
> >
> Yes, I just noticed this and asked myself the same thing. There's no
> need to copy this string around.
>
Because that's what the docstring says it does. So, why did he write the
docstring that way? Because I think it is consistent with what we do
elsewhere.
Well, we could change it, but is it a big deal, really?
Best,
//Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 5 20:46:56 2005