Skip to content

Commit a1f06be

Browse files
pcloudsgitster
authored andcommitted
diff-no-index.c: use error_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 26604f9 commit a1f06be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

diff-no-index.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ static int populate_from_stdin(struct diff_filespec *s)
6565
size_t size = 0;
6666

6767
if (strbuf_read(&buf, 0, 0) < 0)
68-
return error("error while reading from stdin %s",
69-
strerror(errno));
68+
return error_errno("error while reading from stdin");
7069

7170
s->should_munmap = 0;
7271
s->data = strbuf_detach(&buf, &size);

0 commit comments

Comments
 (0)