read-cache.c: initialize copy_len to shut up gcc 8
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 3 Nov 2018 08:48:49 +0000 (09:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Nov 2018 04:42:11 +0000 (13:42 +0900)
commitf5c4a9af45fa47130c730a5da87e030d040f000b
tree941bb1606815abbec36b4ba2c7e03979ad57d6f2
parent88168b9b43a17d5f7712d15cf5ccfed517eb4470
read-cache.c: initialize copy_len to shut up gcc 8

It was reported that when building with NO_PTHREADS=1,
-Wmaybe-uninitialized is triggered. Just initialize the variable from
the beginning to shut the compiler up (because this warning is enabled
in config.dev)

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c