From: Ramsay Jones Date: Tue, 28 Nov 2017 03:01:19 +0000 (+0000) Subject: repository: fix a sparse 'using integer as NULL pointer' warning X-Git-Tag: v2.16.0-rc0~65^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c250e02e2c6de8c116f4320a48ce44bbdb43015c?ds=inline;hp=c250e02e2c6de8c116f4320a48ce44bbdb43015c repository: fix a sparse 'using integer as NULL pointer' warning Commit 78a6766802 ("Integrate hash algorithm support with repo setup", 2017-11-12) added a 'const struct git_hash_algo *hash_algo' field to the repository structure, without modifying the initializer of the 'the_repo' variable. This does not actually introduce a bug, since the '0' initializer for the 'ignore_env:1' bit-field is interpreted as a NULL pointer (hence the warning), and the final field (now with no initializer) receives a default '0'. Signed-off-by: Ramsay Jones Signed-off-by: Junio C Hamano ---