From 2b087cb45ae91f90492a935625570d7d42ee3ecb Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 7 Apr 2010 14:26:15 -0400 Subject: New dmnsn_malloc() function, and friends. I'm tired of checking for malloc failures everywhere, considering it never happens. So just bail out whenever it does. A lot of stuff is guaranteed to succeed if it returns now. --- bench/libdimension/bvst.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'bench/libdimension') diff --git a/bench/libdimension/bvst.c b/bench/libdimension/bvst.c index fe9cf1f..de568d5 100644 --- a/bench/libdimension/bvst.c +++ b/bench/libdimension/bvst.c @@ -122,10 +122,6 @@ main() for (i = 0; i < nobjects; ++i) { objects[i] = dmnsn_new_object(); - if (!objects[i]) { - fprintf(stderr, "--- Couldn't allocate object! ---\n"); - return EXIT_FAILURE; - } /* Generate a bounding box in (-1, -1, -1), (1, 1, 1) */ dmnsn_randomize_bounding_box(objects[i]); -- cgit v1.2.3