aboutsummaryrefslogtreecommitdiffstats
path: root/src/serd_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-06-21 17:38:13 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:06:27 +0200
commitdfe59abeecba302a04a2d38a78a40fe356ec81a7 (patch)
tree72a907aafc0200890a9db2ac3d97e0e15f74478a /src/serd_internal.h
parentf3e2c83e894ebc5ca42e7260215ef5d31e95ded6 (diff)
downloadserd-dfe59abeecba302a04a2d38a78a40fe356ec81a7.tar.gz
serd-dfe59abeecba302a04a2d38a78a40fe356ec81a7.tar.bz2
serd-dfe59abeecba302a04a2d38a78a40fe356ec81a7.zip
Cleanup: Fix uninitialised variables
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r--src/serd_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h
index dea98000..7449c514 100644
--- a/src/serd_internal.h
+++ b/src/serd_internal.h
@@ -72,7 +72,7 @@ static inline void*
serd_bufalloc(size_t size)
{
#ifdef HAVE_POSIX_MEMALIGN
- void* ptr;
+ void* ptr = NULL;
const int ret = posix_memalign(&ptr, SERD_PAGE_SIZE, size);
return ret ? NULL : ptr;
#else