Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Nov 2005 09:08:50 +0100
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Colin Percival <cperciva@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/portsnap/make_index make_index.c
Message-ID:  <20051120080850.GD856@eucla.lemis.com>
In-Reply-To: <200511200050.jAK0oUbB059874@repoman.freebsd.org>
References:  <200511200050.jAK0oUbB059874@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, 20 November 2005 at  0:50:30 +0000, Colin Percival wrote:
> cperciva    2005-11-20 00:50:30 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     usr.sbin/portsnap/make_index make_index.c
>   Log:
>   An empty file does not have a positive number of lines.

Yes it does.  It's 0, not -0.

>   Make sure that the number of lines read is non-zero before in
>   order to avoid dumping core.

This is a different (and presumably correct) test.

Greg
--
See complete headers for address and phone numbers



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051120080850.GD856>