grep: correctly initialize help-all option
authorPatrick Steinhardt <redacted>
Thu, 9 Apr 2015 19:59:06 +0000 (21:59 +0200)
committerJunio C Hamano <redacted>
Mon, 13 Apr 2015 05:46:28 +0000 (22:46 -0700)
commit5dcd1b157790232bf0b2c03ed083c8a2ff670663
tree4640f49a91d255b128690b74e40367d6355c9dd4
parent282616c72d1d08a77ca4fe1186cb708c38408d87
grep: correctly initialize help-all option

The "help-all" option is being initialized with a wrong value.
While being semantically wrong this can also cause a segmentation
fault in gcc on ARMv7 hardfloat platforms with a hardened
toolchain. Fix this by initializing with a NULL value.

Signed-off-by: Patrick Steinhardt <redacted>
Reviewed-by: René Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/grep.c
git clone https://git.99rst.org/PROJECT