diff options
-rw-r--r-- | src/world.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |