summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-05-27 20:30:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-05-28 18:35:25 (GMT)
commit9ca0aaf6de357d46916d81ca40c47886092fe610 (patch)
tree4e232e5fe6e3730cc3ce859b1e324ecaf48a1b8b /sha1_file.c
parent0e8771f1984c468b0f41a8c779c034ffc48530e5 (diff)
downloadgit-9ca0aaf6de357d46916d81ca40c47886092fe610.zip
git-9ca0aaf6de357d46916d81ca40c47886092fe610.tar.gz
git-9ca0aaf6de357d46916d81ca40c47886092fe610.tar.bz2
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 <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index ca491ab..1457069 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -728,7 +728,7 @@ void *xmmap(void *start, size_t length,
{
void *ret = xmmap_gently(start, length, prot, flags, fd, offset);
if (ret == MAP_FAILED)
- die_errno("Out of memory? mmap failed");
+ die_errno("mmap failed");
return ret;
}