summaryrefslogtreecommitdiffstats
path: root/libdimension/diffuse.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/diffuse.c')
-rw-r--r--libdimension/diffuse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdimension/diffuse.c b/libdimension/diffuse.c
index 910e23f..d6ecf37 100644
--- a/libdimension/diffuse.c
+++ b/libdimension/diffuse.c
@@ -19,6 +19,7 @@
*************************************************************************/
#include "dimension.h"
+#include <errno.h>
#include <stdlib.h> /* For malloc */
#include <math.h>
@@ -48,6 +49,7 @@ dmnsn_new_diffuse_finish(double diffuse)
double *param = malloc(sizeof(double));
if (!param) {
dmnsn_delete_finish(finish);
+ errno = ENOMEM;
return NULL;
}