]> git.ipfire.org Git - thirdparty/git.git/commit - remote-curl.c
do not check truth value of flex arrays
authorJeff King <peff@peff.net>
Wed, 28 Jan 2015 17:58:50 +0000 (12:58 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Jan 2015 20:46:07 +0000 (12:46 -0800)
commit94ee8e2c98cf4adf0c69b3b8ce5039eea92347b7
tree451f0890721c2edd8fcc501723ffedfb4a5022ee
parent249b2004d8c9c58ed1ea1665dfd376af0312ed7e
do not check truth value of flex arrays

There is no point in checking "!ref->name" when ref is a
"struct ref". The name field is a flex-array, and there
always has a non-zero address. This is almost certainly not
hurting anything, but it does cause clang-3.6 to complain.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote-curl.c