diff options
Diffstat (limited to 'libdimension/reflective.c')
-rw-r--r-- | libdimension/reflective.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdimension/reflective.c b/libdimension/reflective.c index 726bf8d..2e90b8f 100644 --- a/libdimension/reflective.c +++ b/libdimension/reflective.c @@ -19,6 +19,7 @@ *************************************************************************/ #include "dimension.h" +#include <errno.h> #include <stdlib.h> /* For malloc */ #include <math.h> @@ -53,6 +54,7 @@ dmnsn_new_reflective_finish(dmnsn_color min, dmnsn_color max, double falloff) dmnsn_reflection_params *params = malloc(sizeof(dmnsn_reflection_params)); if (!params) { dmnsn_delete_finish(finish); + errno = ENOMEM; return NULL; } |