Skip to content

Commit 9ca0aaf

Browse files
committed
xmmap(): drop "Out of memory?"
We show that message with die_errno(), but the OS is ought to know why mmap(2) failed much better than we do. There is no reason for us to say "Out of memory?" here. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0e8771f commit 9ca0aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sha1_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ void *xmmap(void *start, size_t length,
728728
{
729729
void *ret = xmmap_gently(start, length, prot, flags, fd, offset);
730730
if (ret == MAP_FAILED)
731-
die_errno("Out of memory? mmap failed");
731+
die_errno("mmap failed");
732732
return ret;
733733
}
734734

0 commit comments

Comments
 (0)