aboutsummaryrefslogtreecommitdiffstats
path: root/xalloca.c
diff options
context:
space:
mode:
Diffstat (limited to 'xalloca.c')
-rw-r--r--xalloca.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xalloca.c b/xalloca.c
index 769d70b9..2bb4e4ed 100644
--- a/xalloca.c
+++ b/xalloca.c
@@ -40,7 +40,10 @@ int n;
p = (XALLOCATYPE *) alloca(n);
if (p == (XALLOCATYPE *) 0)
- report(stderr, PS_UNDEFINED, 0, "alloca failed\n");
+ {
+ report(stderr, "alloca failed\n");
+ exit(PS_UNDEFINED);
+ }
return(p);
}