Skip to content

Commit

Permalink
combine-diff.c: use error_errno()
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
pclouds authored and gitster committed May 9, 2016
1 parent eb031a5 commit 4b94ec9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions combine-diff.c
Expand Up @@ -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;
Expand Down

0 comments on commit 4b94ec9

Please sign in to comment.