summaryrefslogtreecommitdiffstats
path: root/libdimension/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/error.c')
-rw-r--r--libdimension/error.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdimension/error.c b/libdimension/error.c
index 118dd54..222f5eb 100644
--- a/libdimension/error.c
+++ b/libdimension/error.c
@@ -153,8 +153,9 @@ dmnsn_default_fatal_error_fn()
if (pid == tid) {
exit(EXIT_FAILURE);
} else {
- int *ret = malloc(sizeof(int));
- *ret = 1;
+ int *ret = malloc(sizeof(int)); /* Don't use dmnsn_malloc */
+ if (ret)
+ *ret = 1;
pthread_exit(ret);
}
#else