Commit 54fd955
Let check_preimage() use memset() to initialize "struct checkout"
Every code site except check_preimage() uses either memset() or declares
a static instance of "struct checkout" to achieve proper initialization.
Lets use memset() instead of explicit initialization of all members here
too to be on the safe side in case this structure is expanded someday.
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 408dee5 commit 54fd955
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2824 | 2824 | | |
2825 | 2825 | | |
2826 | 2826 | | |
| 2827 | + | |
2827 | 2828 | | |
2828 | | - | |
2829 | | - | |
2830 | | - | |
2831 | | - | |
2832 | 2829 | | |
2833 | 2830 | | |
2834 | 2831 | | |
| |||
0 commit comments