Re: [PATCH 4/4] vcs-svn: improve reporting of input errors
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jan 4, 2011, 10:16 UTC
- Message-ID
- <20110104101605.GA24844@burratino>
- In-Reply-To
- <20101228105410.GD13360@burratino>
Jonathan Nieder wrote:
> --- a/vcs-svn/svndump.c > +++ b/vcs-svn/svndump.c > @@ -107,20 +107,37 @@ static void init_keys(void)
[...]
Show 5 quoted lines
> } else if (!strncmp(t, "V ", 2)) {
> len = atoi(&t[2]);
> val = buffer_read_string(len);
> + if (!t)
> + die_short_read();This should have said "if (!val)". Sorry for the confusion.