diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-10-26 00:25:21 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-10-26 00:25:21 -0400 |
commit | c6612fb215d71ac2bea3b614786cf585cd1a6c74 (patch) | |
tree | fa8a4d6eb0bc83ba112b8c1b03b212641669c002 /libdimension/object.c | |
parent | e4e3ea4fd58cbbe462368abde728f9443f01de19 (diff) | |
download | dimension-c6612fb215d71ac2bea3b614786cf585cd1a6c74.tar.xz |
Clean up some dmnsn_new_*() functions.
Rather than special-case every failed memory allocation, just make
dmnsn_delete_*() more robust and call it.
Diffstat (limited to 'libdimension/object.c')
-rw-r--r-- | libdimension/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |