diff options
Diffstat (limited to 'libdimension/interior.c')
-rw-r--r-- | libdimension/interior.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdimension/interior.c b/libdimension/interior.c index a643f70..546a420 100644 --- a/libdimension/interior.c +++ b/libdimension/interior.c @@ -19,6 +19,7 @@ *************************************************************************/ #include "dimension.h" +#include <errno.h> #include <stdlib.h> /* For malloc */ /* Allocate an interior */ @@ -29,6 +30,8 @@ dmnsn_new_interior() if (interior) { interior->ior = 1.0; interior->free_fn = NULL; + } else { + errno = ENOMEM; } return interior; } |