[patch] small fix for ar.c

Jes Sorensen jes@linuxcare.com
Fri Aug 11 07:25:00 GMT 2000


>>>>> "Geoff" == Geoff Keating <geoffk@cygnus.com> writes:

>> Date: Thu, 10 Aug 2000 17:41:00 -0400 From: Jes Sorensen
>> <jes@linuxcare.com>
>> ar.c from current CVS crashes when called without arguments because
>> it tries to do a strcmp on argv[1] which is NULL.

Geoff> Oops!

Geoff> Your patch is not quite right, though.  We want to change the
Geoff> loop to:

That looks just as good or in fact better.

I just saw the problem when invoking ar without any command line
arguments. Not exactly a super important case ;-)

Thanks,
Jes


More information about the Binutils mailing list