summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-06-27 13:54:12 -0400
committerDavid Robillard <d@drobilla.net>2023-06-27 13:54:12 -0400
commit54b32c1949d60225602a7161d5d6c4853230307a (patch)
treed29432a37ebe4943633a36a4a598d2f6b53fdbf0
parent0630d3a8c5cbb3a7830ec6e34514d01e17ec2144 (diff)
downloadlilv-54b32c1949d60225602a7161d5d6c4853230307a.tar.gz
lilv-54b32c1949d60225602a7161d5d6c4853230307a.tar.bz2
lilv-54b32c1949d60225602a7161d5d6c4853230307a.zip
Fix warnings
-rw-r--r--src/world.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/world.c b/src/world.c
index 7750d39..b0ef24d 100644
--- a/src/world.c
+++ b/src/world.c
@@ -664,7 +664,8 @@ lilv_world_get_manifest_uri(LilvWorld* world, const LilvNode* bundle_uri)
// Get the string and length of the given bundle URI
size_t bundle_uri_length = 0U;
const char* const bundle_uri_string =
- sord_node_get_string_counted(bundle_uri->node, &bundle_uri_length);
+ (const char*)sord_node_get_string_counted(bundle_uri->node,
+ &bundle_uri_length);
if (!bundle_uri_length) {
return NULL;
}
@@ -749,6 +750,9 @@ lilv_world_load_bundle(LilvWorld* world, const LilvNode* bundle_uri)
SordNode* bundle_node = bundle_uri->node;
LilvNode* manifest = lilv_world_get_manifest_uri(world, bundle_uri);
+ if (!manifest) {
+ return;
+ }
// Read manifest into model with graph = bundle_node
SerdStatus st = lilv_world_load_graph(world, bundle_node, manifest);