diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-04-01 15:40:19 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-04-01 15:40:19 -0400 |
commit | c8ab44d29c3384210cd8f27533abfd0fb2205cc5 (patch) | |
tree | 91e09bbe8841e808492dc8e5671a2622aba5a419 /libdimension/interior.c | |
parent | e0313016725bc9f87243571e75b2e77f1cae265e (diff) | |
download | dimension-c8ab44d29c3384210cd8f27533abfd0fb2205cc5.tar.xz |
Set errno on failures.
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; } |