From a83e4280ba036fa1ebe5faf58bc789d6bdaa20d0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 14 Apr 2019 09:51:30 +0200 Subject: Zero-initialise world --- src/world.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/world.c b/src/world.c index 7fc5e2a..0d9c5e3 100644 --- a/src/world.c +++ b/src/world.c @@ -44,7 +44,7 @@ lilv_world_drop_graph(LilvWorld* world, const SordNode* graph); LILV_API LilvWorld* lilv_world_new(void) { - LilvWorld* world = (LilvWorld*)malloc(sizeof(LilvWorld)); + LilvWorld* world = (LilvWorld*)calloc(1, sizeof(LilvWorld)); world->world = sord_world_new(); if (!world->world) { -- cgit v1.2.1