summaryrefslogtreecommitdiffstats
path: root/src/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/host.c')
-rw-r--r--src/host.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/host.c b/src/host.c
index 8508b41..379d131 100644
--- a/src/host.c
+++ b/src/host.c
@@ -23,13 +23,11 @@ suil_host_new(SuilPortWriteFunc write_func,
SuilPortSubscribeFunc subscribe_func,
SuilPortUnsubscribeFunc unsubscribe_func)
{
- SuilHost* host = (SuilHost*)malloc(sizeof(struct SuilHostImpl));
+ SuilHost* host = (SuilHost*)calloc(1, sizeof(struct SuilHostImpl));
host->write_func = write_func;
host->index_func = index_func;
host->subscribe_func = subscribe_func;
host->unsubscribe_func = unsubscribe_func;
- host->touch_func = NULL;
- host->gtk_lib = NULL;
return host;
}