diff options
author | David Robillard <d@drobilla.net> | 2022-11-01 23:16:39 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-11-16 10:22:53 -0500 |
commit | 2c309084f8b96f637c204aabb5e8edad3162ba05 (patch) | |
tree | c2f77a138eb648dae5d3b739c371aa2257518315 /src/port.c | |
parent | ea4d4090c53ae0166f99e6af7f232705e8dc1641 (diff) | |
download | lilv-2c309084f8b96f637c204aabb5e8edad3162ba05.tar.gz lilv-2c309084f8b96f637c204aabb5e8edad3162ba05.tar.bz2 lilv-2c309084f8b96f637c204aabb5e8edad3162ba05.zip |
Switch to external zix dependency
Diffstat (limited to 'src/port.c')
-rw-r--r-- | src/port.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -224,11 +224,12 @@ lilv_port_get_scale_points(const LilvPlugin* plugin, const LilvPort* port) sord_new_uri(plugin->world->world, (const uint8_t*)LV2_CORE__scalePoint), NULL); - LilvScalePoints* ret = NULL; - if (!sord_iter_end(points)) { - ret = lilv_scale_points_new(); + if (sord_iter_end(points)) { + return NULL; } + LilvScalePoints* ret = lilv_scale_points_new(); + FOREACH_MATCH (points) { const SordNode* point = sord_iter_get_node(points, SORD_OBJECT); @@ -244,7 +245,7 @@ lilv_port_get_scale_points(const LilvPlugin* plugin, const LilvPort* port) } sord_iter_free(points); - assert(!ret || lilv_nodes_size(ret) > 0); + assert(lilv_nodes_size(ret) > 0); return ret; } |