summaryrefslogtreecommitdiffstats
path: root/libdimension/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/object.c')
-rw-r--r--libdimension/object.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdimension/object.c b/libdimension/object.c
index 7cad7f7..9f17971 100644
--- a/libdimension/object.c
+++ b/libdimension/object.c
@@ -19,6 +19,7 @@
*************************************************************************/
#include "dimension.h"
+#include <errno.h>
#include <stdlib.h> /* For malloc */
/* Allocate an intersection - cannot fail */
@@ -49,6 +50,8 @@ dmnsn_new_object()
object->interior = NULL;
object->trans = dmnsn_identity_matrix();
object->free_fn = NULL;
+ } else {
+ errno = ENOMEM;
}
return object;
}