summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-06-02 01:39:03 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-06-02 01:39:24 -0400
commitb234256e8c73f2ac347b867602dfaa358dc711c5 (patch)
tree22400c1bf13cc75991d3cff116e269e28ff45821 /libdimension
parent9cc0cdecd8ac7f504400596d0227ca9033d87af9 (diff)
downloaddimension-b234256e8c73f2ac347b867602dfaa358dc711c5.tar.xz
malloc: Add missing ATOMIC_VAR_INIT().
Diffstat (limited to 'libdimension')
-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 *