diff options
author | David Robillard <d@drobilla.net> | 2019-04-14 09:51:30 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-14 09:51:30 +0200 |
commit | a83e4280ba036fa1ebe5faf58bc789d6bdaa20d0 (patch) | |
tree | f6d4c190472ab26e318268abcf1e0aacb939455b /src | |
parent | 7e4c795ce4a388353704b002f5c46ddea8e8620d (diff) | |
download | lilv-a83e4280ba036fa1ebe5faf58bc789d6bdaa20d0.tar.gz lilv-a83e4280ba036fa1ebe5faf58bc789d6bdaa20d0.tar.bz2 lilv-a83e4280ba036fa1ebe5faf58bc789d6bdaa20d0.zip |
Zero-initialise world
Diffstat (limited to 'src')
-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) { |