1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-01 18:16:08 +02:00

diff-no-index.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:
Nguyễn Thái Ngọc Duy 2016-05-08 16:47:42 +07:00 committed by Junio C Hamano
parent 26604f9f62
commit a1f06be3ff

View File

@ -65,8 +65,7 @@ static int populate_from_stdin(struct diff_filespec *s)
size_t size = 0; size_t size = 0;
if (strbuf_read(&buf, 0, 0) < 0) if (strbuf_read(&buf, 0, 0) < 0)
return error("error while reading from stdin %s", return error_errno("error while reading from stdin");
strerror(errno));
s->should_munmap = 0; s->should_munmap = 0;
s->data = strbuf_detach(&buf, &size); s->data = strbuf_detach(&buf, &size);