diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-06-02 01:39:03 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-06-02 01:39:24 -0400 |
commit | b234256e8c73f2ac347b867602dfaa358dc711c5 (patch) | |
tree | 22400c1bf13cc75991d3cff116e269e28ff45821 /libdimension | |
parent | 9cc0cdecd8ac7f504400596d0227ca9033d87af9 (diff) | |
download | dimension-b234256e8c73f2ac347b867602dfaa358dc711c5.tar.xz |
malloc: Add missing ATOMIC_VAR_INIT().
Diffstat (limited to 'libdimension')
-rw-r--r-- | libdimension/malloc.c | 4 |
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 * |