summaryrefslogtreecommitdiffstats
path: root/libdimension/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/malloc.c')
-rw-r--r--libdimension/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/malloc.c b/libdimension/malloc.c
index 6868802..786a2dc 100644
--- a/libdimension/malloc.c
+++ b/libdimension/malloc.c
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (C) 2010-2011 Tavian Barnes <tavianator@tavianator.com> *
+ * Copyright (C) 2010-2014 Tavian Barnes <tavianator@tavianator.com> *
* *
* This file is part of The Dimension Library. *
* *
@@ -29,7 +29,7 @@
#include <stdatomic.h>
#ifndef NDEBUG
-static atomic_size_t dmnsn_allocs = 0;
+static atomic_size_t dmnsn_allocs = ATOMIC_VAR_INIT(0);
#endif
void *