From: Nguyễn Thái Ngọc Duy Date: Wed, 03 May 2017 10:16:59 GMT Subject: [PATCH v2 14/21] rerere.c: report error on failure to fopen() Message-ID: <20170503101706.9223-15-pclouds@gmail.com> In-Reply-To: <20170503101706.9223-1-pclouds@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy --- rerere.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rerere.c b/rerere.c index 3bd55caf3b..971bfedfb2 100644 --- a/rerere.c +++ b/rerere.c @@ -200,7 +200,7 @@ static struct rerere_id *new_rerere_id(unsigned char *sha1) static void read_rr(struct string_list *rr) { struct strbuf buf = STRBUF_INIT; - FILE *in = fopen(git_path_merge_rr(), "r"); + FILE *in = fopen_or_warn(git_path_merge_rr(), "r"); if (!in) return; -- 2.11.0.157.gd943d85