Re: [PATCH] grep: do not segfault when -f is used
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 17, 2009, 07:44 UTC
- Message-ID
- <7vzl7qforw.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1255702405-7050-1-git-send-email-kraai@ftbfs.org>
Matt Kraai <kraai@ftbfs.org> writes:
Show 7 quoted lines
> "git grep" would segfault if its -f option was used because it would > try to use an uninitialized strbuf, so initialize the strbuf. > > Thanks to Johannes Sixt <j.sixt@viscovery.net> for the help with the > test cases. > > Signed-off-by: Matt Kraai <kraai@ftbfs.org>
Thanks, both of you.