streaming: make sure to notice corrupt object
commit97026fe9a6f70b6c0a9e09408a504287c13dea43
authorJunio C Hamano <gitster@pobox.com>
Mon, 26 Sep 2016 16:23:41 +0000 (26 09:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Sep 2016 17:48:03 +0000 (26 10:48 -0700)
tree65df75365aa983251e470af557efbe296cffd648
parente568e563ade00bbb0937162f405fc160f253e224
streaming: make sure to notice corrupt object

The streaming read interface from a loose object called
parse_sha1_header() but discarded its return value, without noticing
a potential error.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
streaming.c