diff options
Diffstat (limited to 'libdimension/solid_pigment.c')
-rw-r--r-- | libdimension/solid_pigment.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdimension/solid_pigment.c b/libdimension/solid_pigment.c index 811b240..a69e25a 100644 --- a/libdimension/solid_pigment.c +++ b/libdimension/solid_pigment.c @@ -19,6 +19,7 @@ *************************************************************************/ #include "dimension.h" +#include <errno.h> #include <stdlib.h> /* For malloc */ /* Solid color pigment callback */ @@ -35,6 +36,7 @@ dmnsn_new_solid_pigment(dmnsn_color color) solid = malloc(sizeof(dmnsn_color)); if (!solid) { dmnsn_delete_pigment(pigment); + errno = ENOMEM; return NULL; } *solid = color; |