diff options
author | David Robillard <d@drobilla.net> | 2020-07-15 17:43:14 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-16 23:37:49 +0200 |
commit | 5682a7eeda2a050dec1f963a01b06b53e9df0a2f (patch) | |
tree | 4e2ecf62d3d469d871900864d55d75e773006726 /src/world.c | |
parent | 8ad1fef18a1573bd8f8818a20b3c8d4708b42cc3 (diff) | |
download | lilv-5682a7eeda2a050dec1f963a01b06b53e9df0a2f.tar.gz lilv-5682a7eeda2a050dec1f963a01b06b53e9df0a2f.tar.bz2 lilv-5682a7eeda2a050dec1f963a01b06b53e9df0a2f.zip |
Add missing variable initializations
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/world.c b/src/world.c index fc4fc7e..2650490 100644 --- a/src/world.c +++ b/src/world.c @@ -892,7 +892,7 @@ lilv_world_drop_graph(LilvWorld* world, const SordNode* graph) static int lilv_world_unload_file(LilvWorld* world, const LilvNode* file) { - ZixTreeIter* iter; + ZixTreeIter* iter = NULL; if (!zix_tree_find((ZixTree*)world->loaded_files, file, &iter)) { zix_tree_remove((ZixTree*)world->loaded_files, iter); return 0; @@ -1108,12 +1108,12 @@ lilv_world_load_all(LilvWorld* world) SerdStatus lilv_world_load_file(LilvWorld* world, SerdReader* reader, const LilvNode* uri) { - ZixTreeIter* iter; + ZixTreeIter* iter = NULL; if (!zix_tree_find((ZixTree*)world->loaded_files, uri, &iter)) { return SERD_FAILURE; // File has already been loaded } - size_t uri_len; + size_t uri_len = 0; const uint8_t* const uri_str = sord_node_get_string_counted( uri->node, &uri_len); if (strncmp((const char*)uri_str, "file:", 5)) { |