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

Re: failure in 1.4.0-rc4 ruby testsuite on AMD64

From: Peter Samuelson <peter_at_p12n.org>
Date: 2006-08-17 22:34:07 CEST

> >Kouhei Sutou wrote:
> >>@@ -169,7 +169,8 @@
> >> char *tbuf;
> >> apr_size_t tlen;
> >>
> >>- tbuf = ALLOCA_N(char, (window->tview_len + 1));
> >>+ tlen = window->tview_len + 1;
> >>+ tbuf = ALLOCA_N(char, tlen);
> >> svn_txdelta_apply_instructions(window, sbuf, tbuf, &tlen);
> >>
> >> return rb_str_new(tbuf, tlen);

[Nik Clayton]
> Should a comment be added, explaining that this is here to fix a bug?
> In 6 months time someone's liable to look at that code, wonder why
> there's a temporary variable, and probably put things back in the
> name of making the code cleaner.

It's not adding a temporary variable, it's initialising a variable
which will be used on the next line. I don't think a comment is
needed.

Received on Thu Aug 17 22:35:00 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.