cvs commit: src/usr.sbin/portsnap/make_index make_index.c

Greg 'groggy' Lehey grog at FreeBSD.org
Sun Nov 20 08:08:50 GMT 2005


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


More information about the cvs-src mailing list