From c6612fb215d71ac2bea3b614786cf585cd1a6c74 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 26 Oct 2009 00:25:21 -0400 Subject: Clean up some dmnsn_new_*() functions. Rather than special-case every failed memory allocation, just make dmnsn_delete_*() more robust and call it. --- libdimension/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdimension/object.c') diff --git a/libdimension/object.c b/libdimension/object.c index 18d7adb..bc758ef 100644 --- a/libdimension/object.c +++ b/libdimension/object.c @@ -27,7 +27,7 @@ dmnsn_new_intersection() { dmnsn_intersection *intersection = malloc(sizeof(dmnsn_intersection)); if (!intersection) { - dmnsn_error(DMNSN_SEVERITY_HIGH, "Couldn't allocate an intersection object."); + dmnsn_error(DMNSN_SEVERITY_HIGH, "Couldn't allocate an intersection."); } return intersection; } -- cgit v1.2.3