aboutsummaryrefslogtreecommitdiffstats
path: root/xmalloc.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-04-29 20:38:17 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-04-29 20:38:17 +0200
commit54b3b4b7e92fe237942a78c374ca2d57465719b9 (patch)
tree5e44fa1bc15ee7fab703193824eba843106b110b /xmalloc.c
parent43b563fabd2d86161677fd2edd83ff1a9f1625e3 (diff)
downloadfetchmail-54b3b4b7e92fe237942a78c374ca2d57465719b9.tar.gz
fetchmail-54b3b4b7e92fe237942a78c374ca2d57465719b9.tar.bz2
fetchmail-54b3b4b7e92fe237942a78c374ca2d57465719b9.zip
On xmalloc/xrealloc failures, abort() rather than exit(PS_UNDEFINED).
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmalloc.c b/xmalloc.c
index f722c73b..c2ca4a66 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -31,7 +31,7 @@ xmalloc (size_t n)
if (p == (XMALLOCTYPE *) 0)
{
report(stderr, GT_("malloc failed\n"));
- exit(PS_UNDEFINED);
+ abort();
}
return(p);
}
@@ -45,7 +45,7 @@ xrealloc (XMALLOCTYPE *p, size_t n)
if (p == (XMALLOCTYPE *) 0)
{
report(stderr, GT_("realloc failed\n"));
- exit(PS_UNDEFINED);
+ abort();
}
return p;
}