combine-diff.c: use error_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
eb031a5801
commit
4b94ec9b20
@ -1005,8 +1005,7 @@ static void show_patch_diff(struct combine_diff_path *elem, int num_parent,
|
||||
struct strbuf buf = STRBUF_INIT;
|
||||
|
||||
if (strbuf_readlink(&buf, elem->path, st.st_size) < 0) {
|
||||
error("readlink(%s): %s", elem->path,
|
||||
strerror(errno));
|
||||
error_errno("readlink(%s)", elem->path);
|
||||
return;
|
||||
}
|
||||
result_size = buf.len;
|
||||
|
Loading…
Reference in New Issue
Block a user