]> git.ipfire.org Git - thirdparty/git.git/commit - rerere.c
rerere.c: move error_errno() closer to the source system call
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Tue, 9 May 2017 10:11:33 +0000 (17:11 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 May 2017 03:33:56 +0000 (12:33 +0900)
commitf7566f073fccafdd9e0ace514b25897dd55d217a
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