summary refs log tree commit diff
path: root/fail.c
diff options
context:
space:
mode:
Diffstat (limited to 'fail.c')
-rw-r--r--fail.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fail.c b/fail.c
index 207854a..0ecde49 100644
--- a/fail.c
+++ b/fail.c
@@ -48,6 +48,10 @@ oom()
 
 	while (1) {
 		long *m = malloc(4096*4096);
+		if (!m) {
+			write(1, "\n", 1);
+			exit(3);
+		}
 		m[0] = last;
 		m[1] = c++;
 		last = (long)m;