summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-03-12 18:42:45 -0500
committerDavid Robillard <d@drobilla.net>2022-03-12 18:42:45 -0500
commit14864d01399daa6b76e443b3ffddd90a6c5f678d (patch)
treeb6df026125d7651eaf525420168ffb07440cfef3 /src/plugin.c
parentb590c510015db3b3ff8201c557c51c38d26c9982 (diff)
downloadlilv-14864d01399daa6b76e443b3ffddd90a6c5f678d.tar.gz
lilv-14864d01399daa6b76e443b3ffddd90a6c5f678d.tar.bz2
lilv-14864d01399daa6b76e443b3ffddd90a6c5f678d.zip
fixup! WIP: Port to serd1
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 8e2f923..15dc097 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -171,10 +171,11 @@ lilv_plugin_load(LilvPlugin* plugin)
SerdModel* skel = serd_model_new(plugin->world->world, SERD_ORDER_SPO, 0u);
SerdCursor* iter = serd_model_begin(prots);
- for (; !serd_cursor_is_end(iter); serd_cursor_advance(iter)) {
- const SerdStatement* statement = serd_cursor_get(iter);
- const SerdNode* t = serd_statement_object(statement);
- LilvNode* prototype = serd_node_copy(NULL, t);
+ for (const SerdStatement* statement = NULL;
+ (statement = serd_cursor_get(iter));
+ serd_cursor_advance(iter)) {
+ const SerdNode* t = serd_statement_object(statement);
+ LilvNode* prototype = serd_node_copy(NULL, t);
lilv_world_load_resource(plugin->world, prototype);