Skip to content

Commit

Permalink
xmmap(): drop "Out of memory?"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed May 28, 2015
1 parent 0e8771f commit 9ca0aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sha1_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9ca0aaf

Please sign in to comment.