summaryrefslogtreecommitdiff
path: root/t/t1305-config-include.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2017-09-13 13:16:28 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-14 15:17:59 +0900
commit564bde9ae69dc3d60e764078745275b637f90991 (patch)
tree45365f924c0622698493ee62ee0ede6c51133e4c /t/t1305-config-include.sh
parentavoid "write_in_full(fd, buf, len) != len" pattern (diff)
downloadtgif-564bde9ae69dc3d60e764078745275b637f90991.tar.xz
convert less-trivial versions of "write_in_full() != len"
The prior commit converted many sites to check the return value of write_in_full() for negativity, rather than a mismatch with the input length. This patch covers similar cases, but where the return value is stored in an intermediate variable. These should get the same treatment, but they need to be reviewed more carefully since it would be a bug if the return value is stored in an unsigned type (which indeed, it is in one of the cases). Signed-off-by: Jeff King <peff@peff.net> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1305-config-include.sh')
0 files changed, 0 insertions, 0 deletions