From: Jay Soffian Date: Tue, 09 Feb 2010 04:00:14 GMT Subject: Re: [PATCH] blame: prevent a segv when -L given start > EOF Message-ID: <76718491002082000s7be5b32dob5b3dfe764b12da0@mail.gmail.com> In-Reply-To: <7vtytrrrju.fsf@alter.siamese.dyndns.org> On Mon, Feb 8, 2010 at 10:55 PM, Junio C Hamano wrote: > Jay Soffian writes: > >> -     if (lno < top) >> +     if (lno < top || lno < bottom) >>               die("file %s has only %lu lines", path, lno); > > Thanks; I think we make sure that "bottom < top" always hold true before > we reach this point, We swap them if they're reversed. > so checking with bottom alone should suffice, no? Ah true. You can squash that in? :-) j.