rerere.c: move error_errno() closer to the source system call
commitf7566f073fccafdd9e0ace514b25897dd55d217a
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Tue, 9 May 2017 10:11:33 +0000 (9 17:11 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 May 2017 03:33:56 +0000 (26 12:33 +0900)
tree7a146efd5e27d23d59c46e14f8cd075bfea93536
parent5118d7f4e6e00b7eac3ce08a16392a732edc0b2b
rerere.c: move error_errno() closer to the source system call

We are supposed to report errno from fopen(). fclose() between fopen()
and the report function could either change errno or reset it.

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