summaryrefslogtreecommitdiffstats
path: root/src/x11_in_gtk2.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-09-11 19:42:02 +0000
committerDavid Robillard <d@drobilla.net>2015-09-11 19:42:02 +0000
commit36b470397a178ca64bc6d98ecc652aaa7671c938 (patch)
treee9749b710d23c1c1abf28c158e2c80d7036efef2 /src/x11_in_gtk2.c
parent0dc88a80b345e0c2fe13bf54a0d57b348f6205d2 (diff)
downloadsuil-36b470397a178ca64bc6d98ecc652aaa7671c938.tar.gz
suil-36b470397a178ca64bc6d98ecc652aaa7671c938.tar.bz2
suil-36b470397a178ca64bc6d98ecc652aaa7671c938.zip
Zero-initialize wrapper structs.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5723 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/x11_in_gtk2.c')
-rw-r--r--src/x11_in_gtk2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x11_in_gtk2.c b/src/x11_in_gtk2.c
index 000f600..51856e9 100644
--- a/src/x11_in_gtk2.c
+++ b/src/x11_in_gtk2.c
@@ -299,7 +299,7 @@ suil_wrapper_new(SuilHost* host,
LV2_Feature*** features,
unsigned n_features)
{
- SuilWrapper* wrapper = (SuilWrapper*)malloc(sizeof(SuilWrapper));
+ SuilWrapper* wrapper = (SuilWrapper*)calloc(1, sizeof(SuilWrapper));
wrapper->wrap = wrapper_wrap;
wrapper->free = wrapper_free;