mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
pack-objects: use BUG(...) not die("BUG: ...")
Change this code added inda93d12b00
(pack-objects: be incredibly anal about stdio semantics, 2006-04-02) to use BUG() instead. See1a07e59c3e
(Update messages in preparation for i18n, 2018-07-21) for when the "BUG: " prefix was added, and [1] for background on the Solaris behavior that prompted the exhaustive error checking in this fgets() loop. 1. https://lore.kernel.org/git/824.1144007555@lotus.CS.Berkeley.EDU/ Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
e9d7761bb9
commit
5867757d88
|
@ -3397,7 +3397,7 @@ static void read_object_list_from_stdin(void)
|
|||
if (feof(stdin))
|
||||
break;
|
||||
if (!ferror(stdin))
|
||||
die("BUG: fgets returned NULL, not EOF, not error!");
|
||||
BUG("fgets returned NULL, not EOF, not error!");
|
||||
if (errno != EINTR)
|
||||
die_errno("fgets");
|
||||
clearerr(stdin);
|
||||
|
|
Loading…
Reference in a new issue