aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authoramy <[email protected]>2023-05-18 09:06:21 +0000
committeramy <[email protected]>2023-05-18 09:06:21 +0000
commit303f6c61f9d0bbf1b4f962301c45f9439b5230c3 (patch)
tree21811eec9e5a7affb0983eb6ec69814c55260965 /src/util.c
parent15a65db6a1bf6fd33a5496988501e6b8670e0191 (diff)
even more fixes:3
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index bf99a84..dc62378 100644
--- a/src/util.c
+++ b/src/util.c
@@ -26,6 +26,8 @@ double binomial(int n, int k){
}
void* mmalloc(size_t X,char*file,int line,char*func){
void* mal = (malloc)(X);
+ if(mal==NULL)
+ abort();
#ifdef memory_trace
if(allocations==NULL){
allocations=(malloc)(sizeof(*allocations)*2);